4D v13.2SMTP_Body |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.2
SMTP_Body
SMTP_Body
The SMTP_Body command assigns the text in msgBody to the main body section of the mail message identified by smtp_ID. The msgBody is the main block of text. smtp_ID is the long integer reference to the mail message created with the SMTP_New command. msgBody is a text value which contains the body of the message. The size of msgBody is restricted to the 32K limit of a 4D text object. This does not mean that the mail message itself has a 32K limit. In order to send a letter whose body is greater than 32K, you must use the Append flag of the deleteOption parameter (see below). The actual size limitation of a mail message body is limited only by available memory. Warning: Usually, the body of the message should not contain characters with diacritical marks (such as é, ö, etc.). However, if you want to use such “extended” characters, refer to the SMTP_SetPrefs and SMTP_Charset command descriptions. deleteOption is an integer value which specifies whether to delete the body of the message referenced by smtp_ID:
Here is a complete SMTP example: C_LONGINT($SMTP_ID) Note: For more information about this particular use of the Case of structure, please refer to Appendix A, Programming Tips. Below is the code for the method ERRCHECK. This method takes two parameters, the name of the command ($Command), and the error value (passed by executing the command in the parameter of the method. ERRCHECK returns a boolean value corresponding to whether the error was zero. If the error is not zero, the return value ($0) gets false, otherwise it is true. C_TEXT(vErrorMsg) |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: 4D Internet Commands 6.5 SEE ALSO
SMTP_Charset |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||