本文介绍了PhpMailer与SwiftMailer?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个相当简单的php脚本,需要发送一些包含附件的电子邮件。我发现这两个图书馆这样做。另外还有哪些优势呢?或者我应该随机选择一个,并完成它?

I'm building a fairly simple php script that will need to send some emails with attachments. I've found these 2 libraries to do this. Does either one have significant advantages over the other? Or should I just pick one at random and be done with it?

推荐答案

我将会说PHPMailer不再开发,和Swift Mailer是。但是当我googled ...

I was going to say that PHPMailer is no longer developed, and Swift Mailer is. But when I googled ...

这表示它再次工作。

ve使用PHPMailer很多,它一直是坚实可靠的。由于上述原因,我最近开始使用Swift Mailer,也没有给我任何麻烦。

I've used PHPMailer a lot, and its always been solid and reliable. I had recently started using Swift Mailer, for the above reason, and it too has given me no trouble.

现在PHPMailer再次开发,我想我可能会尝试新版本。

Now that PHPMailer is developed again, I think I'll probably give the new version a try.

所以,我的答案是,两者都是有能力的,而且这并不重要 - 选择一个,学习它,使用它。两者都比邮件()提供了巨大的优势,并且吸收了电子邮件的细微差别,以便您可以随时随地了解您真正想要开发的内容。

So, my answer is that both are capable, and that it doesn't matter that much – choose one, learn it, use it. Both offer massive advantages over mail() and abstract away the nuances of email so that you can get on with whatever you are really trying to develop.

这篇关于PhpMailer与SwiftMailer?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 10:22