Elxis uses the swift mailer for sending messages (emails). You can send either html or plain text emails easily via Elxis framework's by using sendmail method. Sendmail accepts the following parameters:
(string) $subject The email subject, required
(string) $body The message body (html or plain text, required)
(string) $alt_body='' In case $body is html you can provide an alternative plain text body (optional)
(mixed) $attachment=null The absolute path to a file to be attached or an array of files (optional)
(mixed) $type='plain' html or plain (optional, defauls to plain)
(mixed) $to=null Recipient email or array of recipients (optional, defaults to MAIL_EMAIL / MAIL_NAME configuration variables) [1]
(mixed) $cc=null Carbon copy (CC) recipient email or array of recipients (optional) [1]
(mixed) $bcc=null Blind carbon copy (BCC) recipient email or array of recipients (optional) [1]
(string) $from=null Sender's email and name (optional, defaults to MAIL_FROM_EMAIL / MAIL_FROM_NAME configuration variables) [2]
The parameter accepts as values a string or an array of strings. Each string can be an email address, or an email address and a name separated with comma (,).