WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Postie

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Email with Embedded Graphic


Embed graphic in email message.
pic = "C:\Temp\test.jpg"

AddExtender("WWPST44I.DLL")
host="mail.hollywood.com"
fromaddr="star@hollywood.com"
userid=""
password=""
port=""
tolist="agent@hollywood.com"
cclist=""
bcclist=""
subject="HTML Email"
HTMLBody = StrCat("<html><p>This is a picture.</p> <img src='cid:",FileRoot( pic ),".",FileExtension( pic ),"' height=480 width=360>")
attachments=pic
flags="h"

kInit(host,fromaddr,userid,password,port)
kDest(tolist,cclist,bcclist)
ret = kSendText(subject,HTMLBody,attachments,flags)
If ret == 0
   errline=kStatusInfo()
   Message("ErrLine",errline)
EndIf

Exit

Article ID:   W17588
Filename:   Email with Embedded Graphic.txt
File Created: 2017:07:28:12:58:35
Last Updated: 2008:11:25:11:38:51