Anyone know what resp 500 means in smtp?
thank you!
CODE:
{snip}
def send_mail(from, to, subject, mesg)
mesgstr = <<ENDMESG
From: #{from}
To: #{to}
Subject: #{subject}
#{mesg}
ENDMESG
require 'net/smtp'
Net::SMTP.start("localhost") do |smtp|
smtp.send_message mesgstr, from, to, subject, mesg
end
end
{snip}
send_mail(“localhost”,“[email protected]”,“mongrel”,“mongrel”)
ERROR:
/usr/local/lib/ruby/1.8/net/smtp.rb:679:in `check_response’: 550 5.1.1
: Recipient address rejected: User unknown in local recipient
table (Net::SMTPFatalError)
On Dec 15, 10:24 pm, Derek S. [email protected] wrote:
mesgstr = <<ENDMESG
end
table (Net::SMTPFatalError)
Posted viahttp://www.ruby-forum.com/.
I hate to be rude, but why are you asking this (and on a Ruby mailing
list none-the-less)? This isn’t a ruby question, and “Recipient
address rejected: User unknown in local recipient table” is a pretty
cut and dry answer. Make sure the mail server on your machine is
properly setup for relaying, and if until to sort that out after
checking that documentation/researching, ask the community for your
mail server.
550 generally means a server-end error.
You may refer the RFC 2821 items.
On Wed, Dec 16, 2009 at 11:26 AM, Derek S.
pharrington wrote:
On Dec 15, 11:18�pm, pharrington [email protected] wrote:
CODE:
� � #{mesg}
send_mail(“localhost”,“[email protected]”,“mongrel”,“mongrel”)
list none-the-less)? This isn’t a ruby question, and “Recipient
address rejected: User unknown in local recipient table” is a pretty
cut and dry answer. Make sure the mail server on your machine is
properly setup for relaying, and if until to sort that out after
checking that documentation/researching, ask the community for your
mail server.
if unable to sort that out
hey pharrington, it is a ruby question after-all its ruby code and I am
using net smtp. yes it was rude of you!
On Dec 15, 11:18 pm, pharrington [email protected] wrote:
CODE:
#{mesg}
send_mail(“localhost”,“[email protected]”,“mongrel”,“mongrel”)
list none-the-less)? This isn’t a ruby question, and “Recipient
address rejected: User unknown in local recipient table” is a pretty
cut and dry answer. Make sure the mail server on your machine is
properly setup for relaying, and if until to sort that out after
checking that documentation/researching, ask the community for your
mail server.
if unable to sort that out
On Dec 16, 2009, at 06:29 , Derek S. wrote:
mail server.
if unable to sort that out
hey pharrington, it is a ruby question after-all its ruby code and I am
using net smtp. yes it was rude of you!
um. no. you didn’t even bother to google for the 550 SMTP code.
pharrington was dead on when he called you on that.
Here: LMGTFY - Let Me Google That For You