Email Marketer exposed two power objects Message and User for personalization. With the objects, you can easily control the entire message if you want. Normally, the scripting objects are used for global personalization scripting.
| Property | Type | Description |
| FromName | Text |
Read/write the display name of the sender, the default value is loaded from the sender account. Example |
| FromEmail | Text |
Read/write the email address of the sender, the default value is loaded from the sender account. Example |
| ReplyName | Text |
Read/write the display name of the reply-to, the default value is loaded from the reply-to account. Example |
| ReplyEmail | Text |
Read/write the email address of the reply-to, the default value is loaded from the reply-to account. Example |
| Subject | Text |
Read/write the message subject. Example |
| CC | Text |
Read/write the email for carbon copy recipients. Example |
| BCC | Text | Read/write the email for blind carbon copy recipients. Example |
| Text | Object | Access the plain text message, Message.Text is a Body object. For more details, please reference to Body. Example |
| Html | Object | Access the HTML message, Message.Html is a Body object. For more details, please reference to Body. Example |
| Format | Text |
Read/write the message format, "Text", "Html" or "Automatic". Example |
| Body | Object | Equals Text or Html object for inline scripting. |
| Attachments | Object |
Access the attachments in the message. Example |
| Cancelled | Bool |
Know whether the delivery of this message is cancelled. Example |
| DateTime | Datetime |
Read the last operation time for the message. Example (for success or failure messages block) |
| ErrorNumber | Number |
Read the error number for a failure or cancelled message. Example (for failure messages block) |
| ErrorText | Text |
Read the error description for a failure or cancelled message. Example (for failure messages block) |
| ListConnection | Object |
ADO database connection object for the mailing list. Example |
| Method | Returns | Description |
| Reset | Nothing | Clear the message contents and attachments. |
| Cancel | Nothing | Cancel the message personalization and creation and this message will not be delivered. |
| Property | Type | Description |
| Text | Text |
Access the plain-text character-string or HTML source codes. Example |
| Method | Returns | Description |
| Write | Nothing |
Append text to plain-text content or HTML source codes. Example Special Notice |
| WriteLine | Nothing |
Append text with line break to plain-text content or HTML source codes. Example |
| InsertFromFile | Nothing |
Insert the contents of a text/html file at this position. Example |
| LoadFromFile | Nothing |
Overwrite the message text with the contents of a text/html file. Example |
| Clear | Nothing |
Empty the message text. Example |
| End | Nothing |
Stop generating this message text. Example |
| SaveToFile | Nothing |
Save the message text to a text/html file. Example |
| Property | Type | Description |
| Count | Number | Read the attachments amount. |
| Method | Returns | Description |
| Add | Nothing |
Add a new attachment by its location. Example |
| Remove | Nothing |
Remove an attached file by its file name or index. Example |
| Clear | Nothing |
Remove all attached files. Example |
| Find | Number |
Find attachment by its file name and returns the index. Example |
| Property | Type | Description |
| Properties | Text |
Read/Write the recipient's attributes from a specific column as a character-string. Returns the contents of the current value from this column as a variant-type. (contains NULL values, numbers, dates, etc.) Example Special Notice |
| Text |
Read/Write the recipient's email address. Example |
|
| FullName | Text |
Read/Write the recipient's full name. Example |
| Connection | Object |
ADO database connection object for the mailing list. Example |
| Method | Returns | Description |
| Clear | Nothing |
Remove all user attributes in the object. Example |
Related Topics