Message.setSubject

void setSubject(string subject, string charset = null)

Set the subject of a message.

Note

The subject string should be in UTF-8.

Parameters

subjectSubject string
charsetThe charset to use for encoding the subject or null to use the default