The MailMessage class keeps track of a single mail message with one or multiple bodies and attachments and header information.
TEXT | Message part type |
MULTIPART | Message part type |
MESSAGE | Message part type |
APPLICATION | Message part type |
AUDIO | Message part type |
IMAGE | Message part type |
VIDEO | Message part type |
OTHER | Message part type |
See Mailer for code examples.