Method

InternetHeaders.Delete


Warning

This item was deprecated in version 2019r2. Please use InternetHeaders.RemoveHeader as a replacement.

Description

Deletes the specified header.

Sample code

mail.Headers.Delete("X-Mailer")

mail.Headers.Delete("X-Mailer", 0)

Compatibility

All project types on all supported operating systems.