InternetHeaders.RemoveHeader
From Xojo Documentation
Method
InternetHeaders.RemoveHeader(name as String, index as Integer = -1)
New in 2019r2
Supported for all project types and targets.
New in 2019r2
Supported for all project types and targets.
Removes the specified header.
Example
mail.Headers.RemoveHeader("X-Mailer")