Mailing Error

Hello All,

I am not able to solve this problem.

Net::SMTPAuthenticationError: 534-5.7.9 Please log in with your web browser and then try again.

I am not getting this every time. I am getting this sometimes. What can be the issue?

Thanks,

Avinash

This is my configuration :-

config.action_mailer.default_url_options = { :host => ‘localhost:3000’ }

config.action_mailer.delivery_method = :smtp

config.action_mailer.smtp_settings = {

:address => “smtp.gmail.com”,

:port => 587,

:domain => ‘gmail.com’,

:user_name => ‘some email’,

:password => ‘password’ ,

:authentication => ‘plain’,

:enable_starttls_auto => true }

Have you activated SMTP access in your gmail preferences?