合规格式的电子邮件
我一直在使用 php 的 pear Mail & Mail_Mime 库用于发送格式正确的带/不带附件的 html 电子邮件。一些托管公司没有安装这些库,并且不愿意这样做。
所以,我正在寻找一个好的技术资源,教程,可读的规范,这样我就可以使用 php 的邮件功能编写我自己的类......你知道一个好的吗?
谢谢,
罗布。
i've been using php's pear Mail & Mail_Mime libraries to send well formatted html emails with/without attachments. some hosting companies don't have these libraries installed, and are reluctant to do so.
so, i'm looking for a good technical source, tutorial, readable spec so i can write my own class using php's mail function... do you know of a good one?
thanks,
rob.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
PEAR 手册中有使用 ftp 安装的说明。我已成功使用它在未提供 PEAR 的 Web 主机上安装了 PEAR。在寻找替代方案之前,您可以先尝试一下。
There are instructions in the PEAR manual for installing using ftp. I have successfully used this to install PEAR on a web host that didn't provide it. You could give that a go before looking for alternatives.
托管公司不需要在服务器上安装 PEAR 库供您使用。您可以将它们包含在您的代码中。
如果您想放弃 PEAR,我建议尝试 Zend_Mail< /a> 为大小。
The hosting company doesn't need to install PEAR libraries on the server for you to use them. You can include them with your code.
If you're looking to move away from PEAR, I'd suggest trying Zend_Mail on for size.
Swiftmailer 类可能正是您想要的,或者可能足够接近,您可以扩展它以满足您的需要。
The Swiftmailer class may be exactly what you are after, or might be close enough that you can extend it to suit your needs.