# Changes to ActiveMailer?

**URL:** <https://www.ruby-forum.com/t/changes-to-activemailer/164554>\
**Category:** Rails\
**Created:** [April 2, 2009, 3:31pm UTC](https://www.ruby-forum.com/t/changes-to-activemailer/164554 "2009-04-02T15:31:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@davidf](https://www.ruby-forum.com/u/davidf)\
**Post date:** [April 2, 2009, 3:31pm UTC](https://www.ruby-forum.com/t/changes-to-activemailer/164554/1 "2009-04-02T15:31:23Z")

</div>

I recently updated Rails on my development server. All went well.  
But I just noticed that my contact page now generates the following  
error when a contact is submitted.

Net::SMTPAuthenticationError (530 5.7.0 Must issue a STARTTLS command  
first. 6sm1162914qwd.18)

If I revert back to Rails 2.2.2 - no problem.

Does anyone have any idea what changed to ActiveMailer may be  
producing this error?

Thanks

---

<div class="post-metadata">

**Author:** ![davidf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@davidf](https://www.ruby-forum.com/u/davidf)\
**Post date:** [April 2, 2009, 8:15pm UTC](https://www.ruby-forum.com/t/changes-to-activemailer/164554/2 "2009-04-02T20:15:46Z")

</div>

I found this in the changelog for ActiveMailer:

"Turn on STARTTLS if it is available in Net::SMTP (added in Ruby  
1.8.7) and the SMTP server supports it (This is required for Gmail‘s  
SMTP server) 1336 [Grant Hollingworth] "

Oddly enough I’m using gmail and it works with Rails 2.2.2! This  
change was made to enable gmail and in my case it seems to have broken  
gmail. I can’t find any documentation on how STARTTLS must be  
accounted for in the config.

Any help will be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![davidf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@davidf](https://www.ruby-forum.com/u/davidf)\
**Post date:** [April 2, 2009, 9:12pm UTC](https://www.ruby-forum.com/t/changes-to-activemailer/164554/3 "2009-04-02T21:12:09Z")

</div>

Need to install smtp-tls as a result of the change.

---

<div class="post-metadata">

**Author:** ![davidf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@davidf](https://www.ruby-forum.com/u/davidf)\
**Post date:** [April 3, 2009, 4:20am UTC](https://www.ruby-forum.com/t/changes-to-activemailer/164554/4 "2009-04-03T04:20:55Z")

</div>

Looks like your auth method!

Blog: [http://random8.zenunit.com/](http://random8.zenunit.com/)  
Learn rails: [http://sensei.zenunit.com/](http://sensei.zenunit.com/)
