Prestwood IT Flashcards Library

These FlashCards are contributed by you (our online community members). They are organized by our knowledge base topics. Specifically, by the Prestwood IT sub-topics.

4 Prestwood IT Solutions FlashCards

Group: Prestwood IT Solutions

Topic: psSendMail DLL

Q&A: Connect and PowerBuilder Reserved Word
Question: Connect is one of the psSendMail API calls. Unfortunately, Connect is also a reserved word in PowerBuilder. How can I use psSendMail with PowerBuilder?


Connect is, indeed, one of the calls in psSendMail v1. If Connect is also a reserved word in your development platform, this is a problem.

Version 2.0 of psSendMail introduces a new API, and we recommend that all psSendMail users migrate their code to use the new calls in the v2 API. Connect is not used in the new, v2 API.

Note: Connect, and the other v1 calls are retained in v2 for backward compatibility only.

Q&A: Does psSendMail v2 support HTML In-line Images?
Question: v2 of psSendMail now allows sending HTML message bodies. Can I include embedded images?


No, not yet.

This is one of the few limitations of psSendMail v2's HTML support, and you can easily get around it by including an image hyperlink - to an image accessible on the web - within your message's HTML body.

Why are embedded images not yet supported?

Many psSendMail v1 users urgently needed two other importart features: authentication, and a little help getting their emails past the "spam police." We focused our efforts on those features first, then added HTML support, and shipped v2 as quickly as possible.

Embedded images are planned for a future iteration of psSendMail.

Tip: 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!
Tip: 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. For service: 916-726-5675
Copyright (C) Prestwood IT Solutions.
All Rights Reserved.
Printed 1/18/2022