如何从Ruby程序发送邮件? [英] How do I send mail from a Ruby program?

查看:126
本文介绍了如何从Ruby程序发送邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆