<%
Dim strName, strEmail, strTel, strAddr, strOdr, strQty, htmlText
strName = Trim(Request.Form("ClientName"))
strTel = Trim(Request.Form("ClientTel"))
strEmail = Trim(Request.Form("ClientEmail"))
strAddr = Trim(Request.Form("ClientAddr"))
strOdr = Trim(Request.Form("ClientOdr"))
strQty = Trim(Request.Form("ClientQty"))
If (strName <> "" And strTel <> "" And strAddr <> "" And strOdr <> "" And strQty <> "" And strEmail <> "") Then
Dim objMail, aRecipients
Set objMail = Server.CreateObject("CDONTS.NewMail")
htmlText = ""
htmlText = htmlText & ""
htmlText = htmlText & ""
htmlText = htmlText & "Medicine Reminder"
htmlText = htmlText & ""
htmlText = htmlText & ""
htmlText = htmlText & ""
htmlText = htmlText & "www.nationalchemists.com "
htmlText = htmlText & "Name : " & strName & " "
htmlText = htmlText & "Tel #: " & strTel & " "
htmlText = htmlText & "Email: " & strEmail & " "
htmlText = htmlText & "Addr : " & strAddr & " "
htmlText = htmlText & "Medicine name: " & strOdr & " "
htmlText = htmlText & "Frequency : " & strQty
htmlText = htmlText & ""
htmlText = htmlText & ""
htmlText = htmlText & ""
objMail.From = "mail@nationalchemists.com"
objMail.To = "mail@nationalchemists.com"
objMail.Subject = "Medicine Reminder of " & strName
aRecipients = Array("nationalchemist@gmail.com")
objMail.BCC = Join(aRecipients, ";")
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Body = htmlText
objMail.Send
Response.Write "...Message Sent. Thank You For Writing to National Chemist! "
Set objMail = Nothing
Else
Response.Write " "
End If %>
|
 |
|
 |
 |