InternetHeaders.SetHeader

From Xojo Documentation

Method

InternetHeaders.SetHeader(Name as String,Value as String)

Supported for all project types and targets.

Sets the name and value of a header.

Example

The following sets a header.

Dim mail As EmailMessage = New EmailMessage
mail.Headers.SetHeader("X-Mailer", "Xojo SMTP Demo")