Hi, Can someone please help me setup ActionMailer via Gmail SMTP. I tried many tutorials online and some gems too but either they are not downloadable or links not working or the suggestions are very vague. Presently I am using Ruby 1.8.6 and Rails 2.3.2 ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.perform_deliveries = true ActionMailer::Base.raise_delivery_errors = true ActionMailer::Base.default_charset = "utf-8" ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :enable_starttls_auto => true :domain => "gmail.com", :authentication => :plain, :user_name => "myemailid-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org", :password => "abc" } ActionMailer::Base.default_content_type = "text/html" I am presently in development mode and hence I am using localhost for development and dont have a specific domain. Can someone please help? I spent days playing with this without progress.
Look around for instructions on setting up TLS - Gmail SMTP won''t work without it. --Matt Jones On Jul 22, 4:45 pm, Ritvvij <Ritvi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > Can someone please help me setup ActionMailer via Gmail SMTP. I tried > many tutorials online and some gems too but either they are not > downloadable or links not working or the suggestions are very vague. > > Presently I am using Ruby 1.8.6 and Rails 2.3.2 > > ActionMailer::Base.delivery_method = :smtp > ActionMailer::Base.perform_deliveries = true > ActionMailer::Base.raise_delivery_errors = true > ActionMailer::Base.default_charset = "utf-8" > ActionMailer::Base.smtp_settings = { > :address => "smtp.gmail.com", > :port => 587, > :enable_starttls_auto => true > :domain => "gmail.com", > :authentication => :plain, > :user_name => "myemai...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org", > :password => "abc"} > > ActionMailer::Base.default_content_type = "text/html" > > I am presently in development mode and hence I am using localhost for > development and dont have a specific domain. Can someone please help? > I spent days playing with this without progress.
worked with action_mailer_tls thanks :) On Jul 23, 5:10 am, Matt Jones <al2o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Look around for instructions on setting up TLS - Gmail SMTP won''t work > without it. > > --Matt Jones > > On Jul 22, 4:45 pm, Ritvvij <Ritvi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > > Can someone please help me setup ActionMailer via Gmail SMTP. I tried > > many tutorials online and some gems too but either they are not > > downloadable or links not working or the suggestions are very vague. > > > Presently I am using Ruby 1.8.6 and Rails 2.3.2 > > > ActionMailer::Base.delivery_method = :smtp > > ActionMailer::Base.perform_deliveries = true > > ActionMailer::Base.raise_delivery_errors = true > > ActionMailer::Base.default_charset = "utf-8" > > ActionMailer::Base.smtp_settings = { > > :address => "smtp.gmail.com", > > :port => 587, > > :enable_starttls_auto => true > > :domain => "gmail.com", > > :authentication => :plain, > > :user_name => "myemai...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org", > > :password => "abc"} > > > ActionMailer::Base.default_content_type = "text/html" > > > I am presently in development mode and hence I am using localhost for > > development and dont have a specific domain. Can someone please help? > > I spent days playing with this without progress.