<- Back to POP3it Pro function list
POP3it_Adv_GetHeader
- Description
This function returns either the entire Header portion of the current email, or a specific Header from the current email. You can specify any Header Name from the email such as "To", "From", or "Subject". If the Header does not exist, POP3it Pro returns nothing. For Headers like "Received", this function will return all of the Received Headers, one per line.
- Return Type
- Text
- Format
- POP3it_Adv_GetHeader ( HeaderName )
- Optional Parameters
- HeaderName
The Name of the Header to retrieve from the current email.
- HeaderName
- Related Items
- POP3it_Adv_GetDate, POP3it_Adv_GoToMessage
- Examples
Example 1
Code:
POP3it_Adv_GetHeader("To")Result:
Returns the value of the To Header from the current email.Example 2
Code:
POP3it_Adv_GetHeader("X-Mailer")Result:
Returns the value of the X-Mailer Header from the current email.