smtp check response 500

D

Derek Smith

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","(e-mail address removed)","mongrel","mongrel")

ERROR:

/usr/local/lib/ruby/1.8/net/smtp.rb:679:in `check_response': 550 5.1.1
<mongrel>: Recipient address rejected: User unknown in local recipient
table (Net::SMTPFatalError)
 
D

Derek Smith

{snip}

send_mail("localhost","(e-mail address removed)","mongrel","mongrel")

ERROR:

/usr/local/lib/ruby/1.8/net/smtp.rb:679:in `check_response': 550 5.1.1
<mongrel>: Recipient address rejected: User unknown in local recipient
table (Net::SMTPFatalError)

550, not 500
 
P

pharrington

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","(e-mail address removed)","mongrel","mongrel")

ERROR:

/usr/local/lib/ruby/1.8/net/smtp.rb:679:in `check_response': 550 5.1.1
<mongrel>: Recipient address rejected: User unknown in local recipient
table (Net::SMTPFatalError)

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.
 
P

pharrington

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.

*if unable to sort that out*
 
D

Derek Smith

pharrington said:
*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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

net/smtp 6
SMTP with Gmail in 1.9.2 1
SMTP SMS Reminder Script 5
Using TLS/SSL with Net::SMTP 0
net-smtp timeout error 2
net/smtp question 6
ruby smtp and gmail 5
SMTP Server Connection Errno ETIMEOUT 0

Members online

Forum statistics

Threads
473,772
Messages
2,569,588
Members
45,100
Latest member
MelodeeFaj
Top