# Rails 2.3.2 \<=\> 2.3.4 SMTP: Recipient cannot contain spaces

**URL:** <https://www.ruby-forum.com/t/rails-2-3-2-2-3-4-smtp-recipient-cannot-contain-spaces/187072>\
**Category:** Rails\
**Created:** [April 16, 2010, 3:32pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-2-3-4-smtp-recipient-cannot-contain-spaces/187072 "2010-04-16T15:32:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![twp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c89c15/32.png) [@twp](https://www.ruby-forum.com/u/twp)\
**Post date:** [April 16, 2010, 3:32pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-2-3-4-smtp-recipient-cannot-contain-spaces/187072/1 "2010-04-16T15:32:22Z")

</div>

Did something change within the mailing support in Rails between  
versions 2.3.2 and 2.3.4?

I have an app running Rails 2.3.2 with the following string as ‘sender’  
for every email I sent out (new user created, forgotton password, that  
kind of thing)  
MAIL\_FROM = “[MyAwesomeWebsite.com](http://MyAwesomeWebsite.com) [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)”

This works fine and in all mail programs I have used it displays the  
‘pretty’ [MyAwesomeWebsite.com](http://MyAwesomeWebsite.com) as the sender, with the automailer@… as  
the address.

Now that I have upgrades to 2.3.4 (or 2.3.5 for that matter) I always  
get the error:  
(Net::SMTPSyntaxError) “501 syntax: Recipient cannot contain a space  
(\<"MyAwesomeWebsite.com" [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid))\n”

Anyone got an idea what is causing this? The error talks about  
recipient, and not sender. Have some order of parameters been swapped  
sneakily inbetween these 2 rails versions?
