HTML Email with Embedded Images from a Website
Previous Topic  Next Topic 



This example demonstrates how to send a a HTML email with embedded images from a web page on a website.


Prepared Example Files



The archive contains one file:



Batch File Contents


This is the content of the batch file:


netmailbot -to -from -subject "Test: HTML Email w/ Embedded images from a WebSite" -server localhost -logfile c:\tmp\log.txt -bodyfile "" -altbody "To view the contents of this email, please visit our website, at" -embed




  1. Unzip the file. This will produce a directory called "HTMLEmbedWebsite". Open this directory.
  2. The use of the -altbody parameter allows a recipient whose email client cannot display HTML to receive this plain text message as an alternative.
  3. Open Notepad and edit the batch file "HTMLEmbedWebsite.bat". Change the values of the parameters -to, -from, and -server to a test recipient of your choosing, your email address, and your mail server.
  4. Invoke the batch file.
  5. NetMailbot should start up and, upon finishing, the email addresse specified with the -to parameter should receive an email message with the specified website embedded.