InternetHeaders.AddHeader

From Xojo Documentation

Method

InternetHeaders.AddHeader(name As String, value As String)

New in 2019r2

Supported for all project types and targets.

Adds a new header.

Example

// populate a email message
Var mail As New EmailMessage
mail.FromAddress = FromAddressField.Value
mail.Subject = SubjectField.Value
mail.BodyPlainText = BodyField.Value
mail.BodyHTML = HtmlField.Value
mail.Headers.AddHeader("X-Mailer","Example SMTP Demo")