Net/smtp authorization exception

I can’t send email using net/smtp from my mac running OSX 10.4. The SMTP
is run by my Internet Service Provider. Any idea
what I’m doing wrong? This is my code:

[email protected]’,‘my password goes here’, :login)

I get the exception

/usr/local/lib/ruby/1.8/net/smtp.rb:680:in `check_response’: 538 5.7.0
Encryption required for requested authentication mechanism

Sending mail works fine using the Mac with the settings which
you can
see in the attached screenshot. It also works from the shell using

Althought :login seems to be the natural choice for the encryption
mechanism, I also tried :plain and the default, but (as expected) with
the same effect.

I suspect that the 3rd parameter (the HELO domain) is incorrect (I used
default described at,
but I don’t know what sensible value I should put here. BTW, I tried
also the
name which is output by uname -n as HELO domain, but with the same

If you look at the attached screenshot, you can see that
connects to
the SMTP server using SSL encryption, so maybe this would be necessary
too, but I have no idea how to mimic this within Ruby.


I think this may help you:

-Jonathan N.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs