Knowledgebase: Windows Hosting > Plesk
How do you use Dundas Mailer?
Posted by Senthil, Last modified by Kumar Ranganathan on 30 March 2011 05:18 PM
Dundas Mailer is a server-side component that can be used to send emails from our mail servers.

How do you use Dundas Mailer?

The following is an example of using the Mailer component to send a simple email:

<%
'Create an instance of our Mailer object.
Set mailObj = Server.CreateObject("Dundas.Mailer")

'Configure our test email.
mailObj.SMTPRelayServers.Add "localhost"
mailObj.FromAddress = "you@yourdomain.com"
mailObj.FromName = "Your Name"

mailObj.Subject = "This is a test email"
mailObj.Body = "This test email is using Dundas Mailer to send email with SquareBrothers.com Hosting"

'Add a recipient address.
mailObj.TOs.Add "target@targetdomain.com"

'We need to catch the error.
On Error Resume Next
mailObj.SendMail
If (Err <> 0) Then
Response.Write "There was an error sending the email: " & Err.Description
End If
%>


Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: