I am using rails 2.3.4 and ruby 1.8.7 Setting up the SMTP via Gmail but failed: ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :authentication => :plain, :enable_starttls_auto => true, :user_name => "noreply@gmail_or_your_google_domain.com", :password => "chucknorris" } Got: Must issue a STARTTLS command (seems that many ppl said with the enable_starttls_auto setting, I shouldn''t see this error). Then I tried to use Mikel''s mail: http://github.com/mikel/mail I got execution expired timeout error on my deliver. My question is whether Mikel''s gem will use the ActionMailer::Base.smtp_settings? and How should I set up the SMTP via Gmail? Thanks! Arthur -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I just got this working without any problems, using XP and instant rails. Dumb question, you did change the username and password, right? Changpeng Zhao On Mon, Nov 30, 2009 at 9:22 PM, Arthur Ccube <arthurccube-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am using rails 2.3.4 and ruby 1.8.7 > > Setting up the SMTP via Gmail but failed: > ActionMailer::Base.smtp_settings = { > :address => "smtp.gmail.com", > :port => 587, > :authentication => :plain, > :enable_starttls_auto => true, > :user_name => "noreply@gmail_or_your_google_domain.com", > :password => "chucknorris" > } > > > Got: > Must issue a STARTTLS command (seems that many ppl said with the > enable_starttls_auto setting, I shouldn''t see this error). > > Then I tried to use Mikel''s mail: > http://github.com/mikel/mail > > I got execution expired timeout error on my deliver. > > My question is whether Mikel''s gem will use the > ActionMailer::Base.smtp_settings? and How should I set up the SMTP via > Gmail? > > > Thanks! > Arthur > > -- > > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Yup, I''ve changed the password and username. That setting is from a tutorial on setting up Gmail and SMTP in rails. Btw, I am using Ubuntu. Thanks, Arthur On 12月1日, 上午12時32分, Changpeng Zhao <cpz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I just got this working without any problems, using XP and instant rails. > > Dumb question, you did change the username and password, right? > > Changpeng Zhao > > On Mon, Nov 30, 2009 at 9:22 PM, Arthur Ccube <arthurcc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I am using rails 2.3.4 and ruby 1.8.7 > > > Setting up the SMTP via Gmail but failed: > > ActionMailer::Base.smtp_settings = { > > :address => "smtp.gmail.com", > > :port => 587, > > :authentication => :plain, > > :enable_starttls_auto => true, > > :user_name => "noreply@gmail_or_your_google_domain.com", > > :password => "chucknorris" > > } > > > Got: > > Must issue a STARTTLS command (seems that many ppl said with the > > enable_starttls_auto setting, I shouldn''t see this error). > > > Then I tried to use Mikel''s mail: > >http://github.com/mikel/mail > > > I got execution expired timeout error on my deliver. > > > My question is whether Mikel''s gem will use the > > ActionMailer::Base.smtp_settings? and How should I set up the SMTP via > > Gmail? > > > Thanks! > > Arthur > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Try this: config.action_mailer.smtp_settings = { :enable_starttls_auto => true, :address => "smtp.gmail.com", :port => "587", :authentication => :plain, :user_name => "noreply@gmail_or_your_google_domain.com", :password => "chucknorris" } 2009/12/2 Arthur Ccube <arthurccube-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> Yup, > > I''ve changed the password and username. > > That setting is from a tutorial on setting up Gmail and SMTP in rails. > > Btw, I am using Ubuntu. > > Thanks, > Arthur > > On 12月1日, 上午12時32分, Changpeng Zhao <cpz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I just got this working without any problems, using XP and instant rails. > > > > Dumb question, you did change the username and password, right? > > > > Changpeng Zhao > > > > On Mon, Nov 30, 2009 at 9:22 PM, Arthur Ccube <arthurcc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > I am using rails 2.3.4 and ruby 1.8.7 > > > > > Setting up the SMTP via Gmail but failed: > > > ActionMailer::Base.smtp_settings = { > > > :address => "smtp.gmail.com", > > > :port => 587, > > > :authentication => :plain, > > > :enable_starttls_auto => true, > > > :user_name => "noreply@gmail_or_your_google_domain.com", > > > :password => "chucknorris" > > > } > > > > > Got: > > > Must issue a STARTTLS command (seems that many ppl said with the > > > enable_starttls_auto setting, I shouldn''t see this error). > > > > > Then I tried to use Mikel''s mail: > > >http://github.com/mikel/mail > > > > > I got execution expired timeout error on my deliver. > > > > > My question is whether Mikel''s gem will use the > > > ActionMailer::Base.smtp_settings? and How should I set up the SMTP via > > > Gmail? > > > > > Thanks! > > > Arthur > > > > > -- > > > > > You received this message because you are subscribed to the Google > Groups > > > "Ruby on Rails: Talk" group. > > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm > . > > > To unsubscribe from this group, send email to > > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > <rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%252Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi Guys, I can send email via GMail SMTP using Mikel''s gem now. The setting is setting Mail''s default smtp and passing the user, pass and enable_tls. Then it works! Thanks! Arthur On Dec 2, 11:43 pm, Sergio Sergio <sergio.spr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Try this: > > config.action_mailer.smtp_settings = { > :enable_starttls_auto => true, > :address => "smtp.gmail.com", > :port => "587", > :authentication => :plain, > :user_name => "noreply@gmail_or_your_google_domain.com", > :password => "chucknorris" > > } > > 2009/12/2 Arthur Ccube <arthurcc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > > Yup, > > > I''ve changed the password and username. > > > That setting is from a tutorial on setting up Gmail and SMTP in rails. > > > Btw, I am using Ubuntu. > > > Thanks, > > Arthur > > > On 12月1日, 上午12時32分, Changpeng Zhao <cpz...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I just got this working without any problems, using XP and instant rails. > > > > Dumb question, you did change the username and password, right? > > > > Changpeng Zhao > > > > On Mon, Nov 30, 2009 at 9:22 PM, Arthur Ccube <arthurcc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > > I am using rails 2.3.4 and ruby 1.8.7 > > > > > Setting up the SMTP via Gmail but failed: > > > > ActionMailer::Base.smtp_settings = { > > > > :address => "smtp.gmail.com", > > > > :port => 587, > > > > :authentication => :plain, > > > > :enable_starttls_auto => true, > > > > :user_name => "noreply@gmail_or_your_google_domain.com", > > > > :password => "chucknorris" > > > > } > > > > > Got: > > > > Must issue a STARTTLS command (seems that many ppl said with the > > > > enable_starttls_auto setting, I shouldn''t see this error). > > > > > Then I tried to use Mikel''s mail: > > > >http://github.com/mikel/mail > > > > > I got execution expired timeout error on my deliver. > > > > > My question is whether Mikel''s gem will use the > > > > ActionMailer::Base.smtp_settings? and How should I set up the SMTP via > > > > Gmail? > > > > > Thanks! > > > > Arthur > > > > > -- > > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Ruby on Rails: Talk" group. > > > > To post to this group, send email to rubyonrails-talk@googlegroups.com > > . > > > > To unsubscribe from this group, send email to > > > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > <rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%252Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.