开发者

Best way to send attachment mail with out using SMTP classes in PHP

can any one please advice me to send attachment mail with开发者_C百科 out using SMTP classes in PHP


You can use the Swift Mailer which has great options other than attachments.


Take a look here. I personally find this very hard so I suggest you take a look at phpmailer.


I wrote a function that sends attachments via mail(), it has some flaws specially with encoding headers but you can learn how it's done and improve it if you like - check this question for the code.

I'd also like to add that SwiftMailer is an excellent PHP library to send emails, and you should favor it if you can over other custom implementations since it has continuous developments and fewer bugs.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜