InternetHeaders.NameCount

From Xojo Documentation

Method

InternetHeaders.NameCount(Name as String) As Integer

Supported for all project types and targets.

Returns as an Integer the number of headers with the name passed to it.

Notes

Internet headers can have multiple headers with the same name.

Example

Dim i As Integer
i = Str(mail.Headers.NameCount("X-Mailer"))