A. Sending an Email with the QuickSend Method
- <%
- Dim objMailer 'Mailer control
- Set objMailer = Server.CreateObject("Dundas.Mailer")
- objMailer.QuickSend From@my.com","To@his.com","Subject","MailBody"
- objMailer.SendMail
- Set objMailer = Nothing
- %>
Explanation according to line:
- Open ASP tag
- Declare a variable named objMailer
- Create instance of Mailer control
- Send email
- Reset variable to nothing
- Close ASP tag
B. Sending an Email with the SendMail Method
- <%
- Dim objMailer 'Mailer control
- Set objMailer = Server.CreateObject("Dundas.Mailer")
- objMailer.TOs.Add "martine@dundas.com"
- objMailer.FromAddress = "FromMe@SomeServer.com"
- objMailer.Subject = "Subject"
- objMailer.Body = "This is the body."
- objMailer.SendMail
- Set objMailer = Nothing
- %>
Explanation according to line:
- Open ASP tag
- Declare a variable named objMailer
- Create instance of Mailer control
- 4-7: Set Mailer control properties and collection items
- Send Mail
- Reset variable to nothing
- Close ASP tag
- This component is not offered with the purchase of a VPS, therefore, if any client wishes to use this, he/she will need to purchase and install on his/her VPS.