WebCatalog's EMail file format

WebCatalog does not actually send the email; it writes a special file into an EmailFolder which the separate Emailer program uses to send the email. If the Emailer program is not running, no emails will be sent. The Emailer program will not erase old outgoing email files until it has successfully completed sending the email.
New for 2.1: the email file format now conforms to unix SendMail and Macintosh SIMS/EIMS native mail format. You can add any extra MIME headers at the top of the file, followed by a blank line and then the body of the message. The format is basically what you see in a Eudora email message.

If for some reason you wish to send emails from your own CGIs or programs (without using WebCatalog's built-in [SendMail] context), you may simply write a text file into the EMailFolder specified in the EMailer preferences. The file must have the following format (only the text between the dashed lines goes into the email file):

-----------Text file saved into EMail folder-------
to: sales@pacific-coast.com
from: me@my domain.com
subject: This is the subject line
Date: Mon, 05 Jan 1998 15:59:33 -0500


An example:

------- /WebCatalog/EMailFolder/SomeFileName.txt -----
to: support@pacific-coast.com, webcatalog@pacific-coast.com
from: WebMaster@YourDomain.com
subject: This is the Subject Line
Date: Mon, 05 Jan 1998 15:59:33 -0500

line 1
line 2
line 3
line 4