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.


Method

InternetHeaders.SetHeader(Name as String, Value as String, index As Integer)

Supported for all project types and targets.

Sets the name and value of a header at a specific index.

Sample Code

The following sets a header.

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