开发者

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'));
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜