Gmail में जब कभी समय मैं अपने रेल ऐप्लिकेशन में सूचनाएं भेजने की कोशिश जोड़ने मैं निम्न त्रुटिNet :: रेल 3.1.0.rc5 में SMTPAuthenticationError जब
Net::SMTPAuthenticationError (535-5.7.1 Username and Password not accepted. Learn more at
):
app/models/friendship.rb:6:in `send_request'
app/controllers/friends_controller.rb:21:in `make_friendship'
मेरी development.rb मेल config सेटिंग प्राप्त
है# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = true
config.action_mailer.delivery_method = :smtp
# Gmail SMTP server setup
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:enable_starttls_auto => true,
:port => 587,
:domain => '@example.com',
:authentication => :plain,
:user_name => '[email protected]',
:password => 'secret'
}
यह मेरे विकास में काम कर रहा है, लेकिन यह उत्पादन में कोई असफल रहा है, कोई विचार? – jpemberthy