InternetHeaders.SetHeader

From Xojo Documentation

Revision as of 03:02, 19 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

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