我使用 GMail 作为我的 SMTP 服务器。我的配置工作得很好:
# config/initializers/action_mailer.rb:
ActionMailer::Base.smtp_settings = {
:tls => true,
:address => "smtp.gmail.com",
:port => "587",
:domain => "www.example.org",
:authentication => :login,
:user_name => "admin@example.org",
:password => "it's a secret"
}
config/ssl/rsa.public
我在和中也有一个公共/私有 RSA 密钥对config/ssl/rsa.private
。
在将电子邮件发送到 GMail 的 SMTP 服务器之前,我该怎么做才能签署电子邮件?