Hey Mark,

Here's the script:


<p><br>
  &lt;%@ Language=&quot;VBScript&quot; CODEPAGE=65001%&gt;<br>
  &lt;% 
'***************************************************************************
<br>
  '* ASP FormMail *<br>
  '* *<br>
  '* Do not remove this notice. *<br>
  '* *<br>
  '* Copyright 1999-2002 by Mike Hall. *<br>
  '* Please see http://www.brainjar.com for documentation and terms of use.
*<br>
  
'***************************************************************************
<br>
</p>
<p>&nbsp;</p>
<p>'- Customization of these values is required, see documentation.
-----------<br>
  referers = Array(&quot;www.conceptgroupinc.com&quot;,
&quot;conceptgroupinc.com&quot;)<br>
  mailComp = &quot;ASPMail&quot;<br>
  smtpServer = &quot;mail.core.com&quot;<br>
  fromAddr = &quot;[EMAIL PROTECTED]&quot;<br>
  '- End required customization section.
-------------------------------------<br>
</p>
<p>&nbsp;</p>
<p>Response.Buffer = true<br>
  errorMsgs = Array()<br>
  'Check for form data.<br>
  if Request.ServerVariables(&quot;Content_Length&quot;) = 0 then<br>
  call AddErrorMsg(&quot;No form data submitted.&quot;)<br>
  end if<br>
  'Check if referer is allowed.<br>
  if UBound(referers) &gt;= 0 then<br>
  validReferer = false<br>
  referer = GetHost(Request.ServerVariables(&quot;HTTP_REFERER&quot;))<br>
  for each host in referers<br>
  if host = referer then<br>
  validReferer = true<br>
  end if<br>
  next<br>
  if not validReferer then<br>
  if referer = &quot;&quot; then<br>
  call AddErrorMsg(&quot;No referer.&quot;)<br>
  else<br>
  call AddErrorMsg(&quot;Invalid referer: '&quot; &amp; referer &amp;
&quot;'.&quot;)<br>
  end if<br>
  end if<br>
  end if<br>
  'Check for the recipients field.<br>
  if Request.Form(&quot;_recipients&quot;) = &quot;&quot; then<br>
  call AddErrorMsg(&quot;Missing email recipient.&quot;)<br>
  end if<br>
  'Check all recipient email addresses.<br>
  recipients = Split(Request.Form(&quot;_recipients&quot;),
&quot;,&quot;)<br>
  for each name in recipients<br>
  name = Trim(name)<br>
  if not IsValidEmailAddress(name) then<br>
  call AddErrorMsg(&quot;Invalid email address in recipient list: &quot;
&amp; 
  name &amp; &quot;.&quot;)<br>
  end if<br>
  next<br>
  recipients = Join(recipients, &quot;,&quot;)<br>
  'Get replyTo email address from specified field, if given, and check
it.<br>
  name = Trim(Request.Form(&quot;_replyToField&quot;))<br>
  if name &lt;&gt; &quot;&quot; then<br>
  replyTo = Request.Form(name)<br>
  else<br>
  replyTo = Request.Form(&quot;_replyTo&quot;)<br>
  end if<br>
  if replyTo &lt;&gt; &quot;&quot; then<br>
  if not IsValidEmailAddress(replyTo) then<br>
  call AddErrorMsg(&quot;Invalid email address in reply-to field: &quot;
&amp; 
  replyTo &amp; &quot;.&quot;)<br>
  end if<br>
  end if<br>
  'Get subject text.<br>
  subject = Request.Form(&quot;_subject&quot;)<br>
  'If required fields are specified, check for them.<br>
  if Request.Form(&quot;_requiredFields&quot;) &lt;&gt; &quot;&quot;
then<br>
  required = Split(Request.Form(&quot;_requiredFields&quot;),
&quot;,&quot;)<br>
  for each name in required<br>
  name = Trim(name)<br>
  if Left(name, 1) &lt;&gt; &quot;_&quot; and Request.Form(name) =
&quot;&quot; 
  then<br>
  call AddErrorMsg(&quot;Missing value for &quot; &amp; name)<br>
  end if<br>
  next<br>
  end if<br>
  'If a field order was given, use it. Otherwise use the order the fields
were<br>
  'received in.<br>
  str = &quot;&quot;<br>
  if Request.Form(&quot;_fieldOrder&quot;) &lt;&gt; &quot;&quot; then<br>
  fieldOrder = Split(Request.Form(&quot;_fieldOrder&quot;),
&quot;,&quot;)<br>
  for each name in fieldOrder<br>
  if str &lt;&gt; &quot;&quot; then<br>
  str = str &amp; &quot;,&quot;<br>
  end if<br>
  str = str &amp; Trim(name)<br>
  next<br>
  fieldOrder = Split(str, &quot;,&quot;)<br>
  else<br>
  fieldOrder = FormFieldList()<br>
  end if<br>
  'If there were no errors, build the email note and send it.<br>
  if UBound(errorMsgs) &lt; 0 then<br>
  'Build table of form fields and values.<br>
  body = &quot;&lt;table border=&quot;&quot;0&quot;&quot;
cellpadding=&quot;&quot;2&quot;&quot;
  cellspacing=&quot;&quot;0&quot;&quot;&gt;&quot; &amp; vbCrLf<br>
  for each name in fieldOrder<br>
  body = body _<br>
  &amp; &quot;&lt;tr valign=&quot;&quot;top&quot;&quot;&gt;&quot; _<br>
  &amp; &quot;&lt;td&gt;&lt;b&gt;&quot; &amp; name &amp;
&quot;:&lt;/b&gt;&lt;/td&gt;&quot;
  _<br>
  &amp; &quot;&lt;td&gt;&quot; &amp; Request.Form(name) &amp;
&quot;&lt;/td&gt;&quot;
  _<br>
  &amp; &quot;&lt;/tr&gt;&quot; &amp; vbCrLf<br>
  next<br>
  body = body &amp; &quot;&lt;/table&gt;&quot; &amp; vbCrLf<br>
  'Add a table for any requested environmental variables.<br>
  if Request.Form(&quot;_envars&quot;) &lt;&gt; &quot;&quot; then<br>
  body = body _<br>
  &amp; &quot;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&quot; &amp; vbCrLf _<br>
  &amp; &quot;&lt;table border=&quot;&quot;0&quot;&quot;
cellpadding=&quot;&quot;2&quot;&quot;
  cellspacing=&quot;&quot;0&quot;&quot;&gt;&quot; &amp; vbCrLf<br>
  envars = Split(Request.Form(&quot;_envars&quot;), &quot;,&quot;)<br>
  for each name in envars<br>
  name = Trim(name)<br>
  body = body _<br>
  &amp; &quot;&lt;tr valign=&quot;&quot;top&quot;&quot;&gt;&quot; _<br>
  &amp; &quot;&lt;td&gt;&lt;b&gt;&quot; &amp; name &amp;
&quot;:&lt;/b&gt;&lt;/td&gt;&quot;
  _<br>
  &amp; &quot;&lt;td&gt;&quot; &amp; Request.ServerVariables(name) &amp;
&quot;&lt;/td&gt;&quot;
  _<br>
  &amp; &quot;&lt;/tr&gt;&quot; &amp; vbCrLf<br>
  next<br>
  body = body &amp; &quot;&lt;/table&gt;&quot; &amp; vbCrLf<br>
  end if<br>
  'Send it.<br>
  str = SendMail()<br>
  if str &lt;&gt; &quot;&quot; then<br>
  AddErrorMsg(str)<br>
  end if<br>
  'Redirect if a URL was given.<br>
  if Request.Form(&quot;_redirect&quot;) &lt;&gt; &quot;&quot; then<br>
  Response.Redirect(Request.Form(&quot;_redirect&quot;))<br>
  end if<br>
  end if %&gt;<br>
  &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;<br>
  &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;
xml:lang=&quot;en&quot;
  lang=&quot;en&quot;&gt;<br>
  &lt;head&gt;<br>
  &lt;meta http-equiv=&quot;Content-Type&quot;
content=&quot;text/html;charset=utf-8&quot;
  /&gt;<br>
  &lt;title&gt;Form Mail&lt;/title&gt;<br>
  &lt;style type=&quot;text/css&quot;&gt;<br>
  body {<br>
  background-color: #ffffff;<br>
  color: #000000;<br>
  font-family: Arial, Helvetica, sans-serif;<br>
  font-size: 10pt;<br>
  }<br>
  table {<br>
  border: solid 1px #000000;<br>
  border-collapse: collapse;<br>
  }<br>
  td, th {<br>
  border: solid 1px #000000;<br>
  border-collapse: collapse;<br>
  font-family: Arial, Helvetica, sans-serif;<br>
  font-size: 10pt;<br>
  padding: 2px;<br>
  padding-left: 8px;<br>
  padding-right: 8px;<br>
  }<br>
  th {<br>
  background-color: #c0c0c0;<br>
  }<br>
  .error {<br>
  color: #c00000;<br>
  }<br>
  &lt;/style&gt;<br>
  &lt;/head&gt;<br>
  &lt;body&gt;<br>
  &lt;% if UBound(errorMsgs) &gt;= 0 then %&gt;<br>
  &lt;p class=&quot;error&quot;&gt;Form could not be processed due to the
following 
  errors:&lt;/p&gt;<br>
  &lt;ul&gt;<br>
  &lt;% for each msg in errorMsgs %&gt;<br>
  &lt;li class=&quot;error&quot;&gt;&lt;% = msg %&gt;&lt;/li&gt;<br>
  &lt;% next %&gt;<br>
  &lt;/ul&gt;<br>
  &lt;% else %&gt;<br>
  &lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;<br>
  &lt;tr&gt;<br>
  &lt;th colspan=&quot;2&quot; valign=&quot;bottom&quot;&gt;<br>
  Thank you, the following information has been sent:<br>
  &lt;/th&gt;<br>
  &lt;/tr&gt;<br>
  &lt;% for each name in fieldOrder %&gt;<br>
  &lt;tr valign=&quot;top&quot;&gt;<br>
  &lt;td&gt;&lt;b&gt;&lt;% = name %&gt;&lt;/b&gt;&lt;/td&gt;<br>
  &lt;td&gt;&lt;% = Request.Form(name) %&gt;&lt;/td&gt;<br>
  &lt;/tr&gt;<br>
  &lt;% next %&gt;<br>
  &lt;/table&gt;<br>
  &lt;% end if %&gt;<br>
  &lt;/body&gt;<br>
  &lt;/html&gt;<br>
  &lt;% 
'---------------------------------------------------------------------------
<br>
  ' Subroutines and functions.<br>
  
'---------------------------------------------------------------------------
<br>
  sub AddErrorMsg(msg)<br>
  dim n<br>
  'Add an error message to the list.<br>
  n = UBound(errorMsgs)<br>
  Redim Preserve errorMsgs(n + 1)<br>
  errorMsgs(n + 1) = msg<br>
  end sub<br>
  function GetHost(url)<br>
  dim i, s<br>
  GetHost = &quot;&quot;<br>
  'Strip down to host or IP address and port number, if any.<br>
  if Left(url, 7) = &quot;http://&quot; then<br>
  s = Mid(url, 8)<br>
  elseif Left(url, 8) = &quot;https://&quot; then<br>
  s = Mid(url, 9)<br>
  end if<br>
  i = InStr(s, &quot;/&quot;)<br>
  if i &gt; 1 then<br>
  s = Mid(s, 1, i - 1)<br>
  end if<br>
  getHost = s<br>
  end function<br>
  'Define the global list of valid TLDs.<br>
  dim validTlds<br>
  function IsValidEmailAddress(emailAddr)<br>
  dim i, localPart, domain, charCode, subdomain, subdomains, tld<br>
  'Check for valid syntax in an email address.<br>
  IsValidEmailAddress = true<br>
  'Parse out the local part and the domain.<br>
  i = InStrRev(emailAddr, &quot;@&quot;)<br>
  if i &lt;= 1 then<br>
  IsValidEmailAddress = false<br>
  exit function<br>
  end if<br>
  localPart = Left(emailAddr, i - 1)<br>
  domain = Mid(emailAddr, i + 1)<br>
  if Len(localPart) &lt; 1 or Len(domain) &lt; 3 then<br>
  IsValidEmailAddress = false<br>
  exit function<br>
  end if<br>
  'Check for invalid characters in the local part.<br>
  for i = 1 to Len(localPart)<br>
  charCode = Asc(Mid(localPart, i, 1))<br>
  if charCode &lt; 32 or charCode &gt;= 127 then<br>
  IsValidEmailAddress = false<br>
  exit function<br>
  end if<br>
  next<br>
  'Check for invalid characters in the domain.<br>
  domain = LCase(domain)<br>
  for i = 1 to Len(domain)<br>
  charCode = Asc(Mid(domain, i, 1))<br>
  if not ((charCode &gt;= 97 and charCode &lt;= 122) or (charCode &gt;= 48
and 
  charCode &lt;= 57) or charCode = 45 or charCode = 46) then<br>
  IsValidEmailAddress = false<br>
  exit function<br>
  end if<br>
  next<br>
  'Check each subdomain.<br>
  subdomains = Split(domain, &quot;.&quot;)<br>
  for each subdomain in subdomains<br>
  if Len(subdomain) &lt; 1 then<br>
  IsValidEmailAddress = false<br>
  exit function<br>
  end if<br>
  next<br>
  'Last subdomain should be a TDL.<br>
  tld = subdomains(UBound(subdomains))<br>
  if not IsArray(validTlds) then<br>
  call SetValidTlds()<br>
  end if<br>
  for i = LBound(validTlds) to UBound(validTlds)<br>
  if tld = validTlds(i) then<br>
  exit function<br>
  end if<br>
  next<br>
  IsValidEmailAddress = false<br>
  end function<br>
  sub setValidTlds()<br>
  'Load the global list of valid TLDs.<br>
  validTlds = Array(&quot;aero&quot;, &quot;biz&quot;, &quot;com&quot;,
&quot;coop&quot;, 
  &quot;edu&quot;, &quot;gov&quot;, &quot;info&quot;, &quot;int&quot;,
&quot;mil&quot;, 
  &quot;museum&quot;, &quot;name&quot;, &quot;net&quot;, &quot;org&quot;,
&quot;pro&quot;, 
  _<br>
  &quot;ac&quot;, &quot;ad&quot;, &quot;ae&quot;, &quot;af&quot;,
&quot;ag&quot;, 
  &quot;ai&quot;, &quot;al&quot;, &quot;am&quot;, &quot;an&quot;,
&quot;ao&quot;, 
  &quot;aq&quot;, &quot;ar&quot;, &quot;as&quot;, &quot;at&quot;,
&quot;au&quot;, 
  &quot;aw&quot;, &quot;az&quot;, _<br>
  &quot;ba&quot;, &quot;bb&quot;, &quot;bd&quot;, &quot;be&quot;,
&quot;bf&quot;, 
  &quot;bg&quot;, &quot;bh&quot;, &quot;bi&quot;, &quot;bj&quot;,
&quot;bm&quot;, 
  &quot;bn&quot;, &quot;bo&quot;, &quot;br&quot;, &quot;bs&quot;,
&quot;bt&quot;, 
  &quot;bv&quot;, &quot;bw&quot;, &quot;by&quot;, &quot;bz&quot;, _<br>
  &quot;ca&quot;, &quot;cc&quot;, &quot;cd&quot;, &quot;cf&quot;,
&quot;cg&quot;, 
  &quot;ch&quot;, &quot;ci&quot;, &quot;ck&quot;, &quot;cl&quot;,
&quot;cm&quot;, 
  &quot;cn&quot;, &quot;co&quot;, &quot;cr&quot;, &quot;cu&quot;,
&quot;cv&quot;, 
  &quot;cx&quot;, &quot;cy&quot;, &quot;cz&quot;, _<br>
  &quot;de&quot;, &quot;dj&quot;, &quot;dk&quot;, &quot;dm&quot;,
&quot;do&quot;, 
  &quot;dz&quot;, &quot;ec&quot;, &quot;ee&quot;, &quot;eg&quot;,
&quot;eh&quot;, 
  &quot;er&quot;, &quot;es&quot;, &quot;et&quot;, _<br>
  &quot;fi&quot;, &quot;fj&quot;, &quot;fk&quot;, &quot;fm&quot;,
&quot;fo&quot;, 
  &quot;fr&quot;, _<br>
  &quot;ga&quot;, &quot;gd&quot;, &quot;ge&quot;, &quot;gf&quot;,
&quot;gg&quot;, 
  &quot;gh&quot;, &quot;gi&quot;, &quot;gl&quot;, &quot;gm&quot;,
&quot;gn&quot;, 
  &quot;gp&quot;, &quot;gq&quot;, &quot;gr&quot;, &quot;gs&quot;,
&quot;gt&quot;, 
  &quot;gu&quot;, &quot;gw&quot;, &quot;gy&quot;, _<br>
  &quot;hk&quot;, &quot;hm&quot;, &quot;hn&quot;, &quot;hr&quot;,
&quot;ht&quot;, 
  &quot;hu&quot;, _<br>
  &quot;id&quot;, &quot;ie&quot;, &quot;il&quot;, &quot;im&quot;,
&quot;in&quot;, 
  &quot;io&quot;, &quot;iq&quot;, &quot;ir&quot;, &quot;is&quot;,
&quot;it&quot;, 
  _<br>
  &quot;je&quot;, &quot;jm&quot;, &quot;jo&quot;, &quot;jp&quot;, _<br>
  &quot;ke&quot;, &quot;kg&quot;, &quot;kh&quot;, &quot;ki&quot;,
&quot;km&quot;, 
  &quot;kn&quot;, &quot;kp&quot;, &quot;kr&quot;, &quot;kw&quot;,
&quot;ky&quot;, 
  &quot;kz&quot;, _<br>
  &quot;la&quot;, &quot;lb&quot;, &quot;lc&quot;, &quot;li&quot;,
&quot;lk&quot;, 
  &quot;lr&quot;, &quot;ls&quot;, &quot;lt&quot;, &quot;lu&quot;,
&quot;lv&quot;, 
  &quot;ly&quot;, _<br>
  &quot;ma&quot;, &quot;mc&quot;, &quot;md&quot;, &quot;mg&quot;,
&quot;mh&quot;, 
  &quot;mk&quot;, &quot;ml&quot;, &quot;mm&quot;, &quot;mn&quot;,
&quot;mo&quot;, 
  &quot;mp&quot;, &quot;mq&quot;, &quot;mr&quot;, &quot;ms&quot;,
&quot;mt&quot;, 
  &quot;mu&quot;, &quot;mv&quot;, &quot;mw &quot;, &quot;mx&quot;,
&quot;my&quot;, 
  &quot;mz&quot;, _<br>
  &quot;na&quot;, &quot;nc&quot;, &quot;ne&quot;, &quot;nf&quot;,
&quot;ng&quot;, 
  &quot;ni&quot;, &quot;nl&quot;, &quot;no&quot;, &quot;np&quot;,
&quot;nr&quot;, 
  &quot;nu&quot;, &quot;nz&quot;, _<br>
  &quot;om&quot;, _<br>
  &quot;pa&quot;, &quot;pe&quot;, &quot;pf&quot;, &quot;pg&quot;,
&quot;ph&quot;, 
  &quot;pk&quot;, &quot;pl&quot;, &quot;pm&quot;, &quot;pn&quot;,
&quot;pr&quot;, 
  &quot;ps&quot;, &quot;pt&quot;, &quot;pw&quot;, &quot;py&quot;, _<br>
  &quot;qa&quot;, _<br>
  &quot;re&quot;, &quot;ro&quot;, &quot;ru&quot;, &quot;rw&quot;, _<br>
  &quot;sa&quot;, &quot;sb&quot;, &quot;sc&quot;, &quot;sd&quot;,
&quot;se&quot;, 
  &quot;sg&quot;, &quot;sh&quot;, &quot;si&quot;, &quot;sj&quot;,
&quot;sk&quot;, 
  &quot;sl&quot;, &quot;sm&quot;, &quot;sn&quot;, &quot;so&quot;,
&quot;sr&quot;, 
  &quot;st&quot;, &quot;sv&quot;, &quot;sy&quot;, &quot;sz&quot;, _<br>
  &quot;tc&quot;, &quot;td&quot;, &quot;tf&quot;, &quot;tg&quot;,
&quot;th&quot;, 
  &quot;tj&quot;, &quot;tk&quot;, &quot;tm&quot;, &quot;tn&quot;,
&quot;to&quot;, 
  &quot;tp&quot;, &quot;tr&quot;, &quot;tt&quot;, &quot;tv&quot;,
&quot;tw&quot;, 
  &quot;tz&quot;, _<br>
  &quot;ua&quot;, &quot;ug&quot;, &quot;uk&quot;, &quot;um&quot;,
&quot;us&quot;, 
  &quot;uy&quot;, &quot;uz&quot;, _<br>
  &quot;va&quot;, &quot;vc&quot;, &quot;ve&quot;, &quot;vg&quot;,
&quot;vi&quot;, 
  &quot;vn&quot;, &quot;vu&quot;, _<br>
  &quot;wf&quot;, &quot;ws&quot;, _<br>
  &quot;ye&quot;, &quot;yt&quot;, &quot;yu&quot;, _<br>
  &quot;za&quot;, &quot;zm&quot;, &quot;zw&quot;)<br>
  end sub<br>
  function FormFieldList()<br>
  dim str, i, name<br>
  'Build an array of form field names ordered as they were received.<br>
  str = &quot;&quot;<br>
  for i = 1 to Request.Form.Count<br>
  for each name in Request.Form<br>
  if Left(name, 1) &lt;&gt; &quot;_&quot; and Request.Form(name) is
Request.Form(i) 
  then<br>
  if str &lt;&gt; &quot;&quot; then<br>
  str = str &amp; &quot;,&quot;<br>
  end if<br>
  str = str &amp; name<br>
  exit for<br>
  end if<br>
  next<br>
  next<br>
  FormFieldList = Split(str, &quot;,&quot;)<br>
  end function<br>
  function SendMail()<br>
  dim mailObj, cdoMessage, cdoConfig<br>
  dim addrList<br>
  'Send email based on mail component. Uses global variables for
parameters<br>
  'because there are so many.<br>
  SendMail = &quot;&quot;<br>
  'Send email (CDONTS version). Note: CDONTS has no error checking.<br>
  if mailComp = &quot;CDONTS&quot; then<br>
  set mailObj = Server.CreateObject(&quot;CDONTS.NewMail&quot;)<br>
  mailObj.BodyFormat = 0<br>
  mailObj.MailFormat = 0<br>
  mailObj.From = fromAddr<br>
  mailObj.Value(&quot;Reply-To&quot;) = replyTo<br>
  mailObj.To = recipients<br>
  mailObj.Subject = subject<br>
  mailObj.Body = body<br>
  mailObj.Send<br>
  set mailObj = Nothing<br>
  exit function<br>
  end if<br>
  'Send email (CDOSYS version).<br>
  if mailComp = &quot;CDOSYS&quot; then<br>
  set cdoMessage = Server.CreateObject(&quot;CDO.Message&quot;)<br>
  set cdoConfig = Server.CreateObject(&quot;CDO.Configuration&quot;)<br>
  
cdoConfig.Fields(&quot;http://schemas.microsoft.com/cdo/configuration/sendus
ing&quot;) 
  = 2<br>
  
cdoConfig.Fields(&quot;http://schemas.microsoft.com/cdo/configuration/smtpse
rver&quot;) 
  = smtpServer<br>
  cdoConfig.Fields.Update<br>
  set cdoMessage.Configuration = cdoConfig<br>
  cdoMessage.From = fromAddr<br>
  cdoMessage.ReplyTo = replyTo<br>
  cdoMessage.To = recipients<br>
  cdoMessage.Subject = subject<br>
  cdoMessage.HtmlBody = body<br>
  on error resume next<br>
  cdoMessage.Send<br>
  if Err.Number &lt;&gt; 0 then<br>
  SendMail = &quot;Email send failed: &quot; &amp; Err.Description &amp;
&quot;.&quot;<br>
  end if<br>
  set cdoMessage = Nothing<br>
  set cdoConfig = Nothing<br>
  exit function<br>
  end if<br>
  'Send email (JMail version).<br>
  if mailComp = &quot;JMail&quot; then<br>
  set mailObj = Server.CreateObject(&quot;JMail.SMTPMail&quot;)<br>
  mailObj.Silent = true<br>
  mailObj.ServerAddress = smtpServer<br>
  mailObj.Sender = fromAddr<br>
  mailObj.ReplyTo = replyTo<br>
  mailObj.Subject = subject<br>
  addrList = Split(recipients, &quot;,&quot;)<br>
  for each addr in addrList<br>
  mailObj.AddRecipient Trim(addr)<br>
  next<br>
  mailObj.ContentType = &quot;text/html&quot;<br>
  mailObj.Body = body<br>
  if not mailObj.Execute then<br>
  SendMail = &quot;Email send failed: &quot; &amp; mailObj.ErrorMessage
&amp; 
  &quot;.&quot;<br>
  end if<br>
  exit function<br>
  end if<br>
  'Send email (ASPMail version).<br>
  if mailComp = &quot;ASPMail&quot; then<br>
  set mailObj = Server.CreateObject(&quot;SMTPsvg.Mailer&quot;)<br>
  mailObj.RemoteHost = smtpServer<br>
  mailObj.FromAddress = fromAddr<br>
  mailObj.ReplyTo = replyTo<br>
  for each addr in Split(recipients, &quot;,&quot;)<br>
  mailObj.AddRecipient &quot;&quot;, Trim(addr)<br>
  next<br>
  mailObj.Subject = subject<br>
  mailObj.ContentType = &quot;text/html&quot;<br>
  mailObj.BodyText = body<br>
  if not mailObj.SendMail then<br>
  SendMail = &quot;Email send failed: &quot; &amp; mailObj.Response &amp;
&quot;.&quot;<br>
  end if<br>
  exit function<br>
  end if<br>
  end function %&gt; </p>



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to