Using Persits ASPEMail
Posted by Paul Woodland (Import) on 02 December 2006 04:35 AM
Persits ASPEMail is a server-side component that can be used to send emails from our mail servers. You will first need to enable Script Mail on your website so that you can send emails out via our SMTP server using the username and password that will be assigned to you. For detials on this, please see this article:https://support.liquidsix.com/index.php?/Knowledgebase/Article/View/89/0/introduction-to-script-mail
Set Mail = Server.CreateObject("Persits.MailSender")
' Enter your script mail details here
Mail.Host = "uk.scriptmail.yourwebservers.com"
Mail.Username = "YOUR SCRIPT MAIL USERNAME"
Mail.Password = "YOUR SCRIPT MAIL PASSWORD"
' Set the from and to addresses
Mail.From = "email@example.com"
Mail.FromName = "Test"
' 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"