<- Back to SMTPit Pro function list
SMTPit_AddEmailHeader
- Description
The SMTPit_AddEmailHeader function adds extra email headers to your email message. The "Headers" parameter takes a name and value pair string. Multiple headers can be added by separating name and value pairs with a return (¶). There should be no spaces in the name section, however the value can have spaces.
Note: You can also set Default Email Headers in the Configuration Dialog. If you have Email Headers assigned in the Configuration Dialog, they will be appended to the Header of the email before any Email Headers you set with this function. You cannot set any of the following with this function: To, From, Subject, Date, Message-ID, CC, or BCC.
- Return Type
- Text
- Format
- SMTPit_AddEmailHeader ( Header(s) )
- Required Parameters
- Header(s)
The Email Header(s) you want to add.
- Header(s)
- Examples
Example 1
Code:
SMTPit_AddEmailHeader("X-Company=Your Company Name")Result:
Adds an X-header named "X-Company" with the value of "Your Company Name"Example 2
Code:
SMTPit_AddEmailHeader("X-RecID="& SomeTable::ID &"¶X-URL=http://www.myurl.com")Result:
Adds two X-headers, one named "X-RecID" with the value in the ID field, and a second named "X-URL" with the value "http://www.myurl.com".