How to send attachments using Swift mailer library?
Please let me know if any eg. how to send attachments(doc/image etc.) using Swift libr开发者_如何学编程ary?
$message = Swift_Message::newInstance('Subject here', 'Body here');
$message->attach(Swift_Attachment::fromPath('/path/to/file'));
精彩评论