Introduction - If you have any usage issues, please Google them yourself
EmailSMTP
This program sends E-Mail using the SMTP protocol. The SMTP object inherits from my Winsock object. It supports HTML formatted messages and attachments.
Images embedded within HTML messages are also supported. Just use src="cid:attach.#" in the IMG tag where# is the attachment number it refers to.
It also has optional logging to Jaguar.log so is suitable for deployment to EAServer.
Please note that the Win API function CryptBinaryToString used to base64 encode non-text attachments requires Win XP, Win Server 2003 or later.
Also included is a sample .reg file you can use to force FindMimeFromData to recognize an oddball file extension as plain ANSI text. Just edit the file and change all occurrences of ext to your file extension. If a text file is not recognized as text, it will be sent base64 encoded. This won t hurt anything but it will make the file 33 larger.
Click here to download the PowerBuilder sample: EMAILSMTP.ZIP
Win API Functions used: