# Smtp check response 500

**URL:** <https://www.ruby-forum.com/t/smtp-check-response-500/180261>\
**Category:** Ruby\
**Created:** [December 16, 2009, 4:24am UTC](https://www.ruby-forum.com/t/smtp-check-response-500/180261 "2009-12-16T04:24:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bloodniece](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bloodniece](https://www.ruby-forum.com/u/bloodniece)\
**Post date:** [December 16, 2009, 4:24am UTC](https://www.ruby-forum.com/t/smtp-check-response-500/180261/1 "2009-12-16T04:24:39Z")

</div>

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”,“removed\_email\_address@domain.invalid”,“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)

---

<div class="post-metadata">

**Author:** ![bloodniece](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bloodniece](https://www.ruby-forum.com/u/bloodniece)\
**Post date:** [December 16, 2009, 4:25am UTC](https://www.ruby-forum.com/t/smtp-check-response-500/180261/2 "2009-12-16T04:25:49Z")

</div>

> {snip}
> 
> send\_mail(“localhost”,“removed\_email\_address@domain.invalid”,“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)

550, not 500

---

<div class="post-metadata">

**Author:** ![bloodniece](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bloodniece](https://www.ruby-forum.com/u/bloodniece)\
**Post date:** [December 16, 2009, 5:20am UTC](https://www.ruby-forum.com/t/smtp-check-response-500/180261/3 "2009-12-16T05:20:58Z")

</div>

On Dec 15, 10:24 pm, Derek S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![bloodniece](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bloodniece](https://www.ruby-forum.com/u/bloodniece)\
**Post date:** [December 16, 2009, 5:11am UTC](https://www.ruby-forum.com/t/smtp-check-response-500/180261/4 "2009-12-16T05:11:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bloodniece](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bloodniece](https://www.ruby-forum.com/u/bloodniece)\
**Post date:** [December 16, 2009, 3:29pm UTC](https://www.ruby-forum.com/t/smtp-check-response-500/180261/5 "2009-12-16T15:29:02Z")

</div>

pharrington wrote:

> On Dec 15, 11:18ï¿½pm, pharrington [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > > CODE:  
> > > ï¿½ ï¿½ #{mesg}  
> > > send\_mail(“localhost”,“removed\_email\_address@domain.invalid”,“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!

---

<div class="post-metadata">

**Author:** ![bloodniece](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bloodniece](https://www.ruby-forum.com/u/bloodniece)\
**Post date:** [December 16, 2009, 5:22am UTC](https://www.ruby-forum.com/t/smtp-check-response-500/180261/6 "2009-12-16T05:22:09Z")

</div>

On Dec 15, 11:18 pm, pharrington [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > CODE:  
> > #{mesg}  
> > send\_mail(“localhost”,“removed\_email\_address@domain.invalid”,“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_

---

<div class="post-metadata">

**Author:** ![bloodniece](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bloodniece](https://www.ruby-forum.com/u/bloodniece)\
**Post date:** [December 16, 2009, 9:37pm UTC](https://www.ruby-forum.com/t/smtp-check-response-500/180261/7 "2009-12-16T21:37:12Z")

</div>

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](http://lmgtfy.com/?q=SMTP+550+Error)
