| Home | Downloads | Support | Purchase/Pricing | Contact Us |
   ExclamationSoft Logo (Click here to go home)
 

MailListBot   

http://www.MailListBot.com    

MailListBot Home > Help Home > Examples Home
MailListBot Examples - HTML Email from web address with embedding

This example demonstrates the sending of an email with a web page as the body of the message. NOTE: The images are all embedded. This means that all of the images are sent as attachments and viewed in the email. This is useful because it does not require the user reading the email to be connected to the Internet to view the images. However, it does make the entire email with images is larger, requiring more bandwidth and time to send and receive the message.

ASP Code
  1. Create the MailListBot object:
    
    Dim oMailListBot
    Set oMailListBot = Server.CreateObject ("ExclamationSoft.MailListBot.3")
    If oMailListBot Is Nothing Then
    	Response.Write "Could not create MailListBot object"
    	Set oMailListBot = Nothing
    	Exit Function
    End If
    
    
  2. Required Properties:
    
    oMailListBot.SetTo = "email@domain.com"
    oMailListBot.SetFrom = "email@domain.com"
    oMailListBot.SetServer = "smtp.domain.com"
    
    
  3. HTML Email Properties: Set the SetBodyFile parameter to a web page address, use the SetIsHtmlBody property to tell MailListBot to treat the message body as html, and use the SetEmbedMode to tell MailListBot to embed the images in the email.
    
    oMailListBot.SetBodyFile = "http://www.yahoo.com"
    oMailListBot.SetIsHtmlBody = True
    oMailListBot.SetEmbedMode = True
    
    
  4. Send the email message:
    
    If oMailListBot.Send = false Then
    	Response.Write "Failed to send message"
    	Response.Write "Error message:["&oMailListBot.GetErrorMsg&"]"
    	Set oMailListBot = Nothing
    	Exit Function
    End If
    
    Set oMailListBot = Nothing
    
    
Cut-And-Paste Code

 

 

 

 

Have a suggestion for our documentation? Let us know: support@MailListBot.com. We're here to help.

Content, HTML, and files Copyright © 1999-2002 ExclamationSoft Inc.
Click here for our privacy policy
Problems, questions, information, click here