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.

Send Email With Image


Question:

I am using your Postie extender to send HTML messages. In the documentation it is stated that "....Also make sure <base> document is set in HTML for embedded images and links." I am trying to figure out how to create an HTML document with embedded images. Everything I do leaves the paths to the images and then the recipient doesn't get the complete email message with the images. How do I set the HTML document to have embedded links?

Answer:

You may want to include a BASE tag in your HTML email so your recipient's browser knows how to interpret document-relative links. The BASE element allows global reference information to be set. Use of the HREF attribute provides a base address for the interpretation of all relative URL references in a document, when that document is read out of context. The TARGET attribute specifies a global frame destination name to be used for page activation changes (in links, forms and image maps).

For example:

<BASE HREF="http://www.winbatch.com" TARGET="_top"> 
This may help, however I'd recommend that you use an absolute URL for each of your links.

AddExtender("WWPST34I.DLL")
host="mail.hollywood.com"
fromaddr="marilyn@hollywood.com"
userid=""
password=""
port=""
tolist="joed@yankees.com"
cclist=""
bcclist=""
subject="Here is a test image"

;Here is a sample using the BASE tag:
mymsg=`<html><head><title></title></head><body><BASE HREF="http://www.winbatch.com" TARGET="_top"><img src="/gifs/aa-title02.gif" width="520" height="34" border=0></body></html>`

;Here is an example using a full URL:
;mymsg=`<html><head><title></title></head><body><img src="http://www.winbatch.com/gifs/aa-title02.gif" width="520" height="34" border=0></body></html>`

flags="h"

kInit(host,fromaddr,userid,password,port)
kDest(tolist,cclist,bcclist)
kSendText(subject,mymsg,attachments,flags)

Article ID:   W16350
File Created: 2017:07:28:12:58:36
Last Updated: 2005:02:18:11:19:58