Name | SMTPit_SetBody |
---|
Description | Use the SMTPit_SetBody function to set the Plain Text or HTML Body of the email. The “Body” of the email is the content of the email that the receiver will read.
|
---|
Return Type | Text |
---|
Format | SMTPit_SetBody ( Content ; Type ; SMTPit_Append ) |
---|
Required Parameters | Content The Plain Text or HTML content for the email.
|
---|
Optional Parameters | - Type
The Content Type; specify “Text” or “HTML”. (Default is “Text”.)
- SMTPit_Append
Leave this in to add this Text to the end of the current Text content.
|
---|
Examples | - Example 1
Uses the text in the "MyEmailBodyField" field for the text body of your email message. SMTPit_SetBody( MyEmailBodyField )
- Example 2
Uses the text "Hello World!" for the text body of your email message. SMTPit_SetBody( "Hello World!" )
- Example 3
Appends "Hello World!" to the current text body block. SMTPit_SetBody( "Hello World!" ; "Text" ; SMTPit_Append )
- Example 4
Sets the HTML body to the html in the "MyHTMLEmailBodyField" SMTPit_SetBody( MyHTMLEmailBodyField ; "HTML" )
- Example 5
Appends the html "<h1>Hello World!</h1>" to the current HTML body. SMTPit_SetBody( "<h1>Hello World!</h1>" ; "HTML" ; SMTPit_Append )
|
---|