4. psSendMail - Getting Your Messages Past the Spam Police
We all know that many, many emails are regularly blocked by various anti-spam mechanisms.
This is a good thing - considering all the spam being generated.
Here are some tips for helping your messages get to your intended recipients.
8. psSendMail v2 - How to Compose HTML Messages
psSendMail v2 supports HTML message bodies. But it does not offer a WYSWYG HTML editor. It is, after all, "just" a DLL. A great way to get started constructing HTML messages is to simply use your favorite HTML authoring tool. Compose your message, then switch to your authoring tool's source view. Copy everything between (but not including) the opening and closing "" tags into your psSendMail message body. Of course, since psSendMail is targeted at developers, you'll probably be constructing your HTML messages programatically. The technique just described will give you a precise idea of what needs to go into your HTML messages.
Tip: Be sure to set the psSendMail HTML parameter to True!
11. psSendMain v2 - What Happened to My Line Breaks?
Now that psSendMain supports both HTML and plain text message bodies, as a developer, you must use the HTML parameter properly.
If you create the body of your message as you would plain text, but set the HTML parameter to True, the receiving email program will do exactly what web browsers do: It will treat your CR and LF characters as white space, not line breaks.
So be sure the HTML parameter is set to False before sending plain text messages.
13. What happened to my line breaks?
Since the release of psSendMail v2, we've had some users ask about missing line breaks in the emails they send.
The problem is not a defect, it's a side-effect of psSendMail's new HTML option. If the HTML parameter is set to true, HTML-enabled email clients will treat carriage-return and line-feed characters as mere white space. If the HTML parameter is set to False, your line-breaks will be preserved.
Share your knowledge with the WORLD! In addition to adding comments to existing posts, you can post knowledge you've acquired. We welcome full articles (intro with screen shots), general posts (shorter), and tidbits (tips, FAQs, definitions, etc.).