Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ArgumentError: SMTP-AUTH requested but missing user name + ActionMailer

I m not able to sent mail using actionmailer everytime I try to deliver the mail using actionmailer It report me with error

ArgumentError: SMTP-AUTH requested but missing user name

This is Strange as I'm able to sent mail via Telnet but not using ActionMailer

Attaching Telnet Screenshot

Here 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
 }

Can anyone Please tell as to via the Mail is not getting sent

enter image description here

like image 342
Ratatouille Avatar asked Aug 04 '12 06:08

Ratatouille


1 Answers

Got it. It's user_name, and not username.

like image 192
Ratatouille Avatar answered Nov 17 '22 01:11

Ratatouille