InternetHeaders.AppendHeader

From Xojo Documentation

Method

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

Supported for all project types and targets.

Appends a new header.

Example

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