In addition to specifying recipient with addTo(), it's possible to specify recipient of copy with
addCc() and recipient of blind copy: addBcc(). In all these methods, including setFrom(),
we can specify addressee in three ways:

Embedded images can be inserted using $mail->addEmbeddedFile('background.gif'), but it is not necessary. Why?
Because Nette Framework finds and inserts all files referenced in the HTML code automatically. This behavior can be supressed by
adding FALSE as a second parameter of the setHtmlBody() method.

If a HTML e-mail has no plain-text alternative, it will be automatically generated. And if it has no subject set, it will be
taken from the <title> element.

Attachments

Adding attachments to the e-mail is simple. In order to attach a file, we use addAttachment method:

Creating links

The Latte Engine itself doesn't provide {link} macro. If we want to use it though, we can use a presenter or a
component to create the template for us by calling $template = $this->createTemplate()->setFile('email.latte')
and adding it in setHtmlBody(). This way, we are able to create links in the template.