Knowledgebase
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 

How do you use Persits ASPEMail?
The following is an example of using the ASPEMail component to send a simple email:
  

<%
   ' Create ASPEmail Object

   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 = "test@yourwebservers.com"
   Mail.FromName = "Test"
   Mail.AddAddress "test@yourwebservers.com"

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

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

Comments (0)