How to use Dundas Mailer?

Line No Coding
1 <%
2 Dim objMailer
3 Set objMailer = Server.CreateObject("Dundas.Mailer")
4 objMailer.SMTPRelayServers.Add "DEFAULT_SMTP_MAIL_SERVER_IP", 2525
5 objMailer.TOs.Add "toaddress@dundas.com"
6 objMailer.FromAddress = "someone@domain.com"
7 objMailer.Subject = "subject"
8 objMailer.HTMLBody = "html body"
9 objMailer.CCs.Add "someone@domain.com"
10 objMailer.SendMail
11 Set objMailer = Nothing
12 %>

Line No Explanation
1 Open ASP tag
2 Declare a variable named objMailer
3 Create instance of Mailer control
4 Set objMailer SMTPRelay mail server. Please get the DEFAULT_SMTP_MAIL_SERVER_IP from the technical support.
5 - 9 Set Mailer control properties and collection items
10 Send Mail
11 Reset variable to nothing
12 Close ASP tag

Sample Coding:

Add Feedback