<% Response.Expires = 0 Response.Expiresabsolute = Now() - 1 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "no-cache" Function echo(strOut) Response.write strOut End Function Function die() Response.end End Function If Len(request.form("FName")) >0 Then Function fnSendMail(recipients, sender, subject, body) Dim SMTP, RecipientArray, X Set SMTP = CreateObject("EasyMail.SMTP.6") SMTP.LicenseKey = "MediaNews Group Interactive (Single Developer)/0010641910C61C00E020" SMTP.MailServer = "smtp.mnginteractive.com" SMTP.Subject = subject SMTP.BodyText = body SMTP.FromAddr = sender SMTP.From = sender SMTP.BodyFormat = 1 SMTP.AutoWrap = 0 recipients = replace(recipients, ",", "~") RecipientArray = Split(recipients, "~") For Each X in RecipientArray if not left(X,1) = "@" then SMTP.AddRecipient "", X, 1 end if Next SMTP.Send End Function 'GET ALL THE FORM FIELDS AND MAKE VARIABLES FROM THEM Dim blnMakeAllBlankValuesNULL, blnShowFormVariables, strFormFieldName Dim strTemp, strFormNames ' you don’t have to write: strData = Request.Form("strData") anymore… ' making blanks = 'NULL' for the DB: blnMakeAllBlankValuesNULL = True ' show the form values for debug: blnShowFormVariables = True ' ok, bring in the form's data, the new way, directly into VBScript variables: For Each strFormFieldName In Request.Form strFormNames = "strTemp=Request.Form(" & chr(34) & strFormFieldName & chr(34) & ")" Execute(strFormNames) If blnMakeAllBlankValuesNULL = True Then If strTemp = "" Then strTemp = "NULL" End If End If strFormNames = strFormFieldName & "=strTemp" Execute(strFormNames) If blnShowFormVariables = True Then strMessage = strMessage & strFormFieldName & " = " & eval(strFormFieldName) & "
" & vbcrlf End If Next Call fnSendMail("circulation@newstimes.com", email, "New! News-Times Subscription", strMessage) echo("

THANK YOU! Your information has been sent. You should receive a confirmation e-mail shortly.

Go back to NewsTimes.com

") Else %>

The News-Times Subscription Services


START A NEW SUBSCRIPTION!

Please provide the following contact information ( * required ):

* First & Last Name
* Street Address
Address 2
* City
State  
* Zip
* Home Phone (xxx-xxx-xxx format)
* E-mail
* Start date  (mm/dd/yy format)

NOTE:  A customer service representative will contact you for subscription information by the end of the next business day Mon-Fri, before your subscription starts.

Yes, I would like to receive Promotional E-mail to the above E-mail address.

Is this Subscription a gift? Yes No

Billing Information (if different than above)

First & Last Name
Billing Address
Address 2
City
State
Zip
Contact Phone (xxx-xxx-xxx format)

Choose your Subscription plan and rate within our home delivery area:

HOME DELIVERY

Thursday Friday & Sunday $2.00 per week
Seven (7) Days $5.00 per week
Seven (7) Days EZ Pay Plan $13.95 for four weeks
Sunday Only $21.00 for 12 Weeks (New Subscribers Only)

 

We will mail the The News-Times to you if you live or will be vacationing outside of our home delivery area. For further information please call Customer Service at 203-744-5100 or (877) 542-6057.

 

       
<% End If %>