SMTPit Pro

Next Generation Email plug-in

<- Back to SMTPit Pro function list

SMTPit_SetBodyHeader

Description

This unique function will allow you to have a "Header" section in the Plain Text or HTML Body of your email message. Possible uses are email letterheads or personalized email messages for mass emailing. SMTPit Pro also lets you to set a Default Header in the Configuration Dialog. If you assign a Plain Text or HTML Header using SMTPit_SetBodyHeader, SMTPit Pro will ignore the Default Header.

Return Type
Text
Format
SMTPit_SetBodyHeader ( Content ; Type ; SMTPit_Append )
Required Parameters
  • Content

    The Plain Text content for the email Header.

Optional Parameters
  • Type

    The Content Type; specify "Text" or "HTML". (Default is "Text".)

  • SMTPit_Append

    Leave this in to add this Text or HTML to the end of the current Header.

Related Items
SMTPit_SetBody, SMTPit_SetBodyFooter, SMTPit_SetBodyWithFile
Examples

Example 1

Code:

SMTPit_SetBodyHeader("Dear "& Contact Name &"¶¶")

Result:

Sets the text header to "Dear", the name in the "Contact Name" field, and two returns.

Example 2

Code:

SMTPit_SetBodyHeader("Additional Header Text";"Text"; SMTPit_Append )

Result:

Appends the text "Additional Header Text" to the Text Header.

Example 3

Code:

SMTPit_SetBodyHeader("<p>Dear "& Contact Name &",</p>";"HTML")

Result:

Sets the HTML header to "Dear" and the the name in the "Contact Name" field.

Example 4

Code:

SMTPit_SetBodyHeader("<p>Dear "& Contact Name &",</p>";"HTML"; SMTPit_Append )

Result:

Appends "Dear" and the the name in the "Contact Name" field to the html header.