如何从Rails 3中的ActionMailer发送签名的电子邮件? [英] How do I send signed emails from ActionMailer in Rails 3?

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

问题描述

使用Rails 3我想使用X.509证书签署电子邮件的部分内容。目前有一个Rails 2在如何发送已签名电子邮件的现有答案来自ActionMailer?,但它不适用于Rails 3。

Using Rails 3 I want to use an X.509 certificate to sign parts of emails. There is a currently existing answer for Rails 2 at How do I send signed emails from ActionMailer? but it doesn't work on Rails 3.

是否可以通过Rails 3中的ActionMailer签署电子邮件?
如果不可能,是否可以通过ActionMailer创建后通过sendmail签署电子邮件?

Is it possible to sign emails via ActionMailer in Rails 3? If that is not possible, is it possible to sign emails via sendmail after creating by ActionMailer?

推荐答案

我有已经将actionmailer_x509移植到Rails 3并将其包装到宝石中。所以现在可以在这里使用: https://github.com/petRUShka/actionmailer_x509

I have been ported actionmailer_x509 to Rails 3 and wrap it into the gem. So now it works and available here: https://github.com/petRUShka/actionmailer_x509

这篇关于如何从Rails 3中的ActionMailer发送签名的电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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