How do I send signed emails from ActionMailer?

Posted by James A. Rosen on Stack Overflow See other posts from Stack Overflow or by James A. Rosen
Published on 2010-04-21T16:26:57Z Indexed on 2010/06/07 18:32 UTC
Read the original article Hit count: 281

Filed under:
|
|
|
|

I'm using GMail as my SMTP server. I have that configuration working just fine:

# 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      => "[email protected]",
  :password       => "it's a secret"
}

I also have a public/private RSA key pair in config/ssl/rsa.public and config/ssl/rsa.private.

What do I do to sign the emails before shipping them off to GMail's SMTP server?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby