How to use Dundas Mailer? Print

  • 848


A. Sending an Email with the color=red>QuickSend Method

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

1  . color=royalblue><%
2  . Dim objMailer
'Mailer control
3  . Set objMailer = color=rosybrown>Server.CreateObject("Dundas.Mailer")

4  . objMailer.QuickSend href='mailto:From@my.com","To@his.com","Subject",'>From@my.com","To@his.com","Subject","MailBody"

. objMailer.SendMail
6  . color=red>Set objMailer = Nothing
7  . color=royalblue>%>

 

Explanation According to Line


1  . Open ASP
tag

2  . color=black>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 color=red>SendMail Method

-----------------------------------------------------------------
1  .
<%
2  . Dim objMailer
'Mailer control
3  . Set objMailer = color=rosybrown>Server.CreateObject("Dundas.Mailer")

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

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

 


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:


Was this answer helpful?

« Back