ArgumentError: SMTP-AUTH requested but missing username + ActionMailer

I cannot send mail using actionmailer every time I try to deliver mail using actionmailer. Report me error

ArgumentError: SMTP-AUTH requested but username missing

This is strange, because I can send mail via Telnet, but not using ActionMailer

Telnet Screen Attachment

Here are my SMTP settings

config.action_mailer.delivery_method = :smtp

config.action_mailer.smtp_settings = {
    :address => '216.224.183.100',
    :port                 => 25,
    :domain               => '[domain_name]',
    :username             => "[username]",
    :password             => "[password]",
    :authentication       => 'plain',
   :enable_starttls_auto => true
 }

Someone can say that it is not sent via mail

enter image description here

+5
source share
1 answer

Got it. This user_name, not username.

+16
source

All Articles