4D Internet Commands v16SMTP_Body |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Internet Commands v16
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. By default, the body of the message is encoded with the UTF-8, which ensures that the characters sent will be interpreted correctly by almost all of the e-mail clients. If you want to use a specific character set, refer to the SMTP_SetPrefs and SMTP_Charset commands. option is used to manage the concatenation of several bodies and to modify the message format (text or HTML):
To combine sending the message in HTML with a replacement option, you can just add together the values. For example, you can pass 1+4 in option to replace the body and send the message in HTML. 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)
Siehe auch
|
EIGENSCHAFTEN
Produkt: 4D Internet Commands
GESCHICHTE
ARTIKELVERWENDUNG
4D Internet Commands ( 4D Internet Commands v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||