I am getting error when I try to send an e-mail. I am trying to send email from localhost.. the actionmailer setting are
ActionMailer::Base.smtp_settings = {
:enable_starttls_auto => true,
:address => "smtp.gmail.com",
:port => 587,
:domain => "mydomain.com",
:authentication => :plain,
:user_name => "do-not-reply@mydomain.com",
:password => "mypassword"
}
When I configured it first time the email was working fine. but after sending 4 or 5 email the functionality stopped working and shows me this error
Net::SMTPAuthenticationError ............
535-5.7.1 Username and Password not accepted.
Where could be a problem?
Thanks..