Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use Dundas Mailer
07-17-2007, 01:15 PM
Post: #1
 
You can take a look at the following script. It can give you an example for using Dundas.Mailer

Code:
<%
        '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 mail is sent my using Dundas Mailer at 3inetwork hosting service"

        'Add a recipient address.
        mailObj.TOs.Add "address@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
    %>


Pham Hung
3inetworks staff

For official support please use our secured helpdesk at https://support.3inetwork.com

Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: