How can I send email in octoberCms with attachment? When I used this way to send email:
$mail = new Mail('newsletter', [
'emails' => $emails,
'subject' => $this->title,
'data' => [
'content' => $this->content,
]
]);
$mail->send();
return true;
I have image but I cant use this without $message function? Is there any way to send image with code above?