Knowledgebase: Script Mail
Sending E-Mail using ASP
Posted by Paul Woodland on 04 August 2012 04:24 PM

If you are sending mail through ASP on your website, you must use SMTP authentication through our Script Mail service, of which details can be found here:

We have a number of ASP components installed for sending emails from ASP. We recommend using Persits ASPEmail, the documentation for which can be found here:
Example of sending email from ASP using Persits ASPEMail:

   ' Create ASPEmail Object

   Set Mail = Server.CreateObject("Persits.MailSender")
   ' Enter your script mail details here
   Mail.Host = ""
   Mail.Username = "YOUR USERNAME"
   Mail.Password = "YOUR PASSWORD"

   ' Set the from and to addresses
   Mail.From = ""
   Mail.FromName = "Test"
   Mail.AddAddress ""

   ' Set the message subject and body
   Mail.Subject = "Test Message"
   Mail.Body = "This is a test"

   ' Send Message
   On Error Resume Next
   If Err <> 0 Then
      Response.Write "Error: " & Err.Description
      Response.Write "Message Sent"
   End If
(1 vote(s))
Not helpful

Comments (0)