Kbase 22070: How To Send Email on Windows Using 3rd Party Software - Blat
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  6/6/2002 |
|
SUMMARY:
A frequently asked question in Technical Support is how to send email on NT. Common ways to do this are vi Sockets or through MAPI. Another is to use a 3rd party email sending client. One of these is "Blat" which is freeware with very few conditions.
EXPLANATION:
To find out more information about Blat, visit the official website at www.blat.net. The Blat client itself can be used as a command line executable or via a call to a dll. A full list of the abilities of Blat can be found in the readme available in the zip file. Included are the ability for return receipt, multiple to, cc and bcc recipients as well as the ability to send HTML message bodies and include text and binary attachments.
SOLUTION:
To use Blat, follow these steps:
1) Download the latest version of Blat:
(http://www.interlog.com/~tcharron/blat194.zip)
and the dll if you choose to use that:
(http://home.att.net/~toby_korn/blat/blat3_1.zip).
2) Unzip Blat and put either the .exe or .dll in a directory in your
path.
3) Read the readme file to get all workings of blat.
4) If you want to set up a default mail server and sender you can do
so with the following command:
Blat -install smtphost.bar.com foo@bar.com
5) You are now ready to use blat to send an email. Below is a .p that
gives an interface to the blat.dll with some of the features.
NOTE: This procedure has not been fully QA'd. It is just an example, so use is at your own discretion. Support will not be provided on its use.
/*------start of blatsendmail.p------------------------------------
Purpose: blatsendmail.p is an interface to the blat.dll that can be used to send emails from a Windows machine to an SMTP mail server.
Input Parameters:
cToEmail as character: Comma separated list of recipients email addresses on the To line
cCcEmail as character: Comma separated list of recipients email addresses on the CC line
cBccEmail as character: Comma separated list of recipi