Subject

The Subject property specifies the message subject. The Subject property is a shortcut to the Headers("Subject") collection item.

Settings and Return Values

Sets or returns a String value.

Remarks

If the subject contains special characters, they will be encoded using the current codepage.

Example

In the following example, the subject is customized with the receiver's name and the text is based on the receiver's language.

Sub Mail_OnStartRender
    If Record.Field("Country") = "France" Then
        Mail.Subject = "Relance à l'attention de " & Record.FullName
    Else
        Mail.Subject = "Billing reminder to the attention of " & Record.FullName
    End If
End Sub

Applies To

Mail Object

 
©2001-2015 eMill. All trademarks property of their owners.