5

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

Ratatouille
  • 1,372
  • 5
  • 23
  • 50
  • 1
    Um, why did you not redact the correct username and password from the picture? Only the incorrect ones. – tripleee Aug 04 '12 at 07:13
  • Your telnet session is not using STARTTLS while your code explicitly requests it. You are not testing the same thing. – tripleee Aug 04 '12 at 07:16
  • @tripleee that not the case as I tried removing the enable tls key and send message again same error also tried by deleting authentication key still no luck – Ratatouille Aug 04 '12 at 09:59

1 Answers1

18

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

Arslan Ali
  • 17,418
  • 8
  • 58
  • 76
Ratatouille
  • 1,372
  • 5
  • 23
  • 50