Knowledgebase
How to use Dundas Mailer?
Posted by - NA - on 17 September 2005 08:22 PM
A. Sending an Email with the QuickSend Method

-----------------------------------------------------------------

1  . <%
2  .
Dim objMailer 'Mailer control

3  . Set objMailer = Server.CreateObject("Dundas.Mailer")

4  . objMailer.QuickSend From@my.com","To@his.com","Subject","MailBody"
5  . objMailer.
SendMail
6  . Set objMailer = Nothing
7  .
%>

 

Explanation According to Line

1  . Open ASP tag
2  . Declare a variable named objMailer

3  . Create instance of Mailer control

4  . Send email

5  . Reset variable to nothing

6  . Close ASP tag

 

 

B. Sending an Email with the SendMail Method

-----------------------------------------------------------------
1  . <%
2  . Dim objMailer 'Mailer control

3  . Set objMailer = Server.CreateObject("Dundas.Mailer")

4  . objMailer.TOs.Add "martine@dundas.com"
5  . objMailer.FromAddress = "FromMe@SomeServer.com"
6  . objMailer.Subject = "Subject"
7  . objMailer.Body = "This is the body."

8  . objMailer.SendMail
9  . Set objMailer = Nothing
10. %> 

 

Explanation According to Line

1     . Open ASP tag
2     . Declare a variable named objMailer

3     . Create instance of Mailer control

4 -7 . Set Mailer control properties and collection items

8     . Send Mail

9     . Reset variable to nothing

10   . Close ASP tag

 

 

For further information, please refer to:

http://www.dundas.com/products/onlineDocs/FreeProds/Dunsam.htm

(442 votes)
This article was helpful
This article was not helpful

Comments (0)
Help Desk Software by Kayako Resolve