'PLEASE CUT AND PASTE THE CODING BELOW AND SAVE THE FILE AS " mail.asp ". 'AS per the Govt Of India regualtions , bulk mailing is considered a spam and hence your account will be deleted immedietly 'while bulk mailing. Hence avoid bulk mailing. This program is strictly for non-bulk mailing application only. 'If found to be abusing with bulk mail, your domain will be deleted without any prior notice. ' strHost = "mail.yourdomain.com" ' We not offer support for this coding. ' Please note that either one of the email id 'i.e. from email or to email should from your domain name. Else, the code will throw an error " this server requires 'authentication" <% ' change to address of your own SMTP server strHost = "mail.yourdomain.com" If Request("Send") <> "" Then Set Mail = Server.CreateObject("Persits.MailSender") ' enter valid SMTP host Mail.Host = strHost Mail.Username = "full email id" ' This email id must be created in this domain before you can use this code Mail.Password = "email's password" Mail.From = Request("From") ' From address Mail.FromName = Request("FromName") ' optional Mail.AddAddress Request("To") ' message subject Mail.Subject = Request("Subject") ' message body Mail.Body = Request("Body") strErr = "" bSuccess = False On Error Resume Next ' catch errors Mail.Send ' send message If Err <> 0 Then ' error occurred strErr = Err.Description else bSuccess = True End If End If %> FORM MAIL

FORM TO MAIL

<% If strErr <> "" Then %>

Error occurred: <% = strErr %>

<% End If %> <% If bSuccess Then %>

Success! Message sent to <% = Request("To") %>.

<% End If %>
Host (change as necessary in script): <% = strHost %>
From (enter sender's address):
FromName (optional, enter sender's name):
To: (enter one recipient's address):
Subject:
Body: