This means you need to look at the Swift Mailer documentation to see what
methods are availiable for this class. There are a lot of methods,
more than I wish to document. Any methods availiable in
{@link Swift_Mime_Message} are availiable here.
Documentation for the most important methods can be found at
{@link http://swiftmailer.org/docs/messages}
The YiiMailMessage component also allows using a shorthand for methods in
{@link Swift_Mime_Message} that start with set* or get*
For instance, instead of calling $message->setFrom('...') you can use
$message->from = '...'.
Here are a few methods to get you started:
- setSubject('Your subject')
- setFrom(array('john@doe.com' => 'John Doe'))
- setTo(array('receiver@domain.org', 'other@domain.org' => 'Name'))
- attach(Swift_Attachment::fromPath('my-document.pdf'))