This example demonstrates how to send a HTML email with embedded images stored on your local hard drive.
Using this feature requires working knowledge of creating and editing HTML pages. We have provided an example page here.
Prepared Example Files
The -bodyfile parameter in NetMailBot uses full paths. We have assumed a particular path as shown in the batch file contents below. Therefore, download this file to C:\tmp on your hard drive or edit the -bodyfile parameter to reflect wherever you unzip the archive.
The archive contains three files:
Batch File Contents
This is the content of the batch file:
netmailbot -to firstname.lastname@example.org -from email@example.com -subject "Customer Follow-Up" -server localhost -logfile c:\tmp\log.txt -bodyfile "c:\tmp\HTMLEmbedLocalDrive\HTMLEmbedLocalDrive.html" -altbody "To view the contents of this email, please visit our website, at http://www.mysite.com" -embed
<IMG alt="" src="c:\tmp\HTMLEmbedLocalDrive\exclamationsoft_logo.gif">
The images must include full path information, e.g C:\tmp\HTMLEmbedLocalDrive\exclamationsoft_logo.gif.