Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include image in BLAT html message

Status
Not open for further replies.

ChrisRChamberlain

Programmer
Mar 23, 2000
3,392
GB
Hi all

Developing an app that uses BLAT to send emails as html.

The app builds messages from a database and am wondering how images are included in messages?

TIA

FAQ184-2483​
Chris [pc2]
PDFcommander.com
motrac.co.uk
 
Probably the same way you would include an image in any HTML document.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Chris

Thanks for your reply.

Eventually found a code snippit that shows how.
Code:
[<h1>Hey, have you tried BLAT email?</h1>]	;
	+	[<BR>]								;
	+	[<a href='[URL unfurl="true"]https://www.google.com'>[/URL]]	;
	+ 	[google.com] 						;
	+ 	[</a>]								;
	+	[<BR>]								;
	+	[<BR>]								;
	+	[<img src="cid:camera.png">]		;
[tab]+ [<BR>]								;
	+	[<img src="cid:c90jb.png">]
That's the message sent via BLAT, (apologies for the poor formatting).

There is a command line switch/argument/etc '-embed', so
Code:
lcEmbed = [c90jb.png,camera.png]
is added to the other command line switches.

No need for <html> or <body> tags as there is a command line switch
Code:
llHTMLFormat=.T.
also sent.


FAQ184-2483​
Chris [pc2]
PDFcommander.com
motrac.co.uk
 
The embed instruction tells the app to create a multipart message with the image inserted as a stream of hexadecimal characters after the message body.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top