A. Sending an Email with the
color=red>QuickSend Method
-----------------------------------------------------------------
1 .
color=royalblue><%
2 . Dim objMailer
'Mailer control
2 . Dim objMailer
'Mailer control
3 . Set objMailer =
color=rosybrown>Server.CreateObject("Dundas.Mailer")
Explanation According to Line
1 . Open ASP
tag
2 . color=black>Declare a variable named objMailer
tag
2 . color=black>Declare a variable named objMailer
3 . Create
instance of Mailer control
instance of Mailer control
4 . Send email
5 . Reset variable to nothing
6 . Close ASP
tag
tag
B. Sending an Email with the
color=red>SendMail Method
-----------------------------------------------------------------
1 .
<%
2 . Dim objMailer
'Mailer control
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."
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>%>
9 .
Set objMailer = Nothing
10. color=royalblue>%>
Explanation According to Line
1 . Open ASP
tag
2 .
Declare a variable named objMailer
tag
2 .
Declare a variable named objMailer
3 . Create
instance of Mailer control
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
tag
For further information, please refer to: