如何从Ruby程序发送邮件? [英] How do I send mail from a Ruby program?
本文介绍了如何从Ruby程序发送邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
如果你不想使用 ActionMailer ,您可以使用 Net :: SMTP (实际发送)连同 tmail ,用于轻松创建电子邮件(包含多个部分等)。
I want to send email from a Ruby application. Is there a call in the core language to do this or is there a library I should use? What's the best way to do this?
解决方案
If you don't want to use ActionMailer you can use Net::SMTP (for the actual sending) together with tmail for easily creating emails (with multiple parts, etc.).
这篇关于如何从Ruby程序发送邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文