# \[ANN\] ActionMailer w/TLS plugin

**URL:** <https://www.ruby-forum.com/t/ann-actionmailer-w-tls-plugin/84401>\
**Category:** Rails\
**Created:** [February 4, 2007, 2:29am UTC](https://www.ruby-forum.com/t/ann-actionmailer-w-tls-plugin/84401 "2007-02-04T02:29:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kylemathews](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/51bf81/32.png) [@kylemathews](https://www.ruby-forum.com/u/kylemathews)\
**Post date:** [February 4, 2007, 2:29am UTC](https://www.ruby-forum.com/t/ann-actionmailer-w-tls-plugin/84401/1 "2007-02-04T02:29:33Z")

</div>

# ActionMailer Optional TLS

This plugin allows ActionMailer to work with SMTP servers that require  
TLS. It is heavily monkeypatched into ActionMailer and Net/SMTP, but  
such is life. Just set the following, and proceed as usual:

ActionMailer::Base.server\_settings[:tls] = true

I haven’t quite figured out the best way to test this plugin, but if  
you execute the following command from the plugin directory itself,  
you should receive a gmail from yourself, and a fair amount of debug  
information will be output. I hope it suffices; if not, suggest an  
improvement!

rake EMAIL=removed\_email\_address@domain.invalid PASSWORD=secret

Repository:  
[http://svn.kylemaxwell.com/rails\_plugins/action\_mailer\_optional\_tls/tags/rel-0.1.0/](http://svn.kylemaxwell.com/rails_plugins/action_mailer_optional_tls/tags/rel-0.1.0/)

Feedback welcome, enjoy!

-Kyle
