Reason for this error is that your server is not supporting the authentication type which your are choosing.
e.g. :authentication => :plain is not supported.
Solution 1:
- Try changing :authentication => :plain --------> :authentication => :login
Solution 2:
- Goto: Settings ->Protocols -> SMTP
- Go to tab "RFC Compliance"
- Check "Allow plain text authentication" (You can check one or more options according to your requirements)
- Now try sending an e-mail
Cheers
Keywords: Actionmailer, ruby,rails, smtp, 504, plain, login, email, hmail,