KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Note: Sending Multi-Part emails Using 4D Internet Commands
PRODUCT: 4D Internet Commands | VERSION: 6.5 | PLATFORM: Mac & Win
Published On: March 30, 2001
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

When you want to send e-mails using 4D Internet Commands, you have two options:

You can use SMTP_QuickSend

This command is designed to provide basic e-mailing capabilities in a single statement but does not provide much control over the contents and destination of your e-mails.

You can use the SMTP low-level commands

These commands (SMTP_New, SMTP_Host, SMTP_From, SMTP_Cc, SMTP_Bcc, SMTP_Subject, SMTP_AddHeader and SMTP_Send) are to be used in a sequence that define a mail envelope. Each of these commands addresses a specific aspect of the e-mail and refers to the same mail ID.

In the sample database that comes with this technical note, it is obviously the second method that was chosen. The reason for this choice is simple: SMTP_Quicksend does not allow you to specify contents other than plain text. Although this is fine for many applications, it is not enough when want to specify the Header of the e-mail and use contents of a mixed nature.

Download Complete Tech Note & Example: Windows | Mac