There appears to be only minor difference between using :plain or :login 
authentication with 
SMTP: http://www.samlogic.net/articles/smtp-commands-reference-auth.htm

>From this page
http://stackoverflow.com/questions/6379950/gmail-smtp-with-rails-3

you no longer need the tlsmail gem, which explains why I get by without it. 

As for calling ActionMailer::Base.delivery_method 
vs config.action_mailer.delivery_method, they no doubt amount to the same 
thing (not certain - someone more versed could comment). Mine is older 
code, and yours reads more cleanly. 

Tim



On Thursday, March 7, 2013 12:33:20 PM UTC-5, no one wrote:
>
> http://hobocentral.net/tutorials/43-using-gmail-for-sending-email
>
> perhaps this doesn't work on rails anymore
>
> Rails::Initializer.run do |config|
>     config.gem "tlsmail"
> end
>
> and this Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE) is giving me :
>
> environment.rb:7:in `<top (required)>': undefined method `enable_tls' for 
> Net::SMTP:Class (NoMethodError)
>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to