Just remove domain from smtp settings and it should work fine Instead we are
passing it through username.

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
  :address => "smtp.gmail.com",
  :port => 587,
  :authentication => :plain,
  :enable_starttls_auto => true,
  :user_name => "muk...@gmail.com",
  :password => "123456"
}

Let me know if still problem!

On Thu, Mar 18, 2010 at 2:37 PM, Manish Belsare <li...@ruby-forum.com>wrote:

>
> > Why don't you send emails using gmail account ?
> >
>
>
> Sir,
> I would surely like to know what i have to make changes in the
> environment.rb file..
> My email information is available in the development.log file..
>
> Sir my environment.rb file has foll contents:
>
> ActionMailer::Base.delivery_method = :smtp
>
> ActionMailer::Base.smtp_settings = {
>  :address => "smtp.gmail.com" ,
>   :port => 25,
>  :domain => "gmail.com" ,
>  :authentication => :login,
>  :enable_starttls_auto => true,
>  :user_name => "mukesh" ,
>  :password => "123456"
> }
>
> Here user name is user name created by the user and not email id..
> so what schanges chould i make to this file?
>
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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-t...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>


-- 
Sandip

---
www.funonrails.com

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to