# Smtp.gmail.com

**URL:** <https://www.ruby-forum.com/t/smtp-gmail-com/164214>\
**Category:** Rails\
**Created:** [March 30, 2009, 3:25am UTC](https://www.ruby-forum.com/t/smtp-gmail-com/164214 "2009-03-30T03:25:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d78d45/32.png) [@bartee](https://www.ruby-forum.com/u/bartee)\
**Post date:** [March 30, 2009, 3:25am UTC](https://www.ruby-forum.com/t/smtp-gmail-com/164214/1 "2009-03-30T03:25:41Z")

</div>

I am trying to get my slicehost/Rails/radiant/nginx/mongrel site to work  
with the Radiant extension Mailer and [smtp.gmail.com](http://smtp.gmail.com)

I have the openrain-action\_mailer\_tls (1.1.3) gem installed.

I have google accounts eMail set up that I can log into so I believe the  
user/domain is valid.

I am not sure if I am having a radiant problem or a gMail problem.

Here is the production log…

```
Processing MailController#create (for 74.184.148.126 at 2009-03-28

```

17:09:47) [POST] Session ID:  
BAh7CToMY3NyZl9pZCIlNzU0MzkzNjgzMjQ2MTE0ZmY0MTRiZjBmZTk0NDZj  
NWM6DnJldHVybl90bzAiDHVzZXJfaWRpBiIKZmxhc2hJQzonQWN0aW9uQ29u  
dHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsGOgtub3RpY2UiJFlvdXIgcGFn  
ZSBoYXMgYmVlbiBzYXZlZCBiZWxvdy4GOgpAdXNlZHsGOwhUâ€”26c3f68aca424118bc2aeba2085e34d1e4254765  
Parameters: {â€œactionâ€=\>â€œcreateâ€, â€œpage\_idâ€=\>â€œ33â€,  
â€œmailerâ€=\>{â€œmessageâ€=\>â€œasdasf asfasdf asdasdf asdfasdf asdasdf â€œ,  
â€œnameâ€=\>â€œBartee L.â€, â€œsubjectâ€=\>â€œthis is the subject lineâ€,  
â€œemailâ€=\>â€œremoved\_email\_address@domain.invalidâ€}, â€œcontrollerâ€=\>â€œmailâ€}  
Sent mail to removed\_email\_address@domain.invalid, removed\_email\_address@domain.invalid

On my dev machine in development mode, it shows the actual eMail  
content.

On the slicehost production machine ( as shown above ) it does not.

I required smtp\_tls in the config/environment.rb file

I have have this in the config/environment.rb file

```
ResponseCache.defaults[:directory] =

```

ActionController::Base.page\_cache\_directory  
ResponseCache.defaults[:logger] = ActionController::Base.logger  
ActionMailer::Base.smtp\_settings = { :address =\> â€œsmtp.gmail.comâ€,  
:port =\> â€œ587â€, :domain =\> â€œzzzzzz.comâ€, :user\_name =\>  
â€œremoved\_email\_address@domain.invalidâ€, :password =\> â€œxxxxxxxâ€, :authentication =\> :plain }  
end  
config.action\_mailer.delivery\_method = :smtp  
config.action\_mailer.perform\_deliveries = true  
config.action\_mailer.raise\_delivery\_errors = true  
config.action\_mailer.default\_charset = â€˜utf-8â€™  
end

I am new to this, but have figured out a lot of stuff so far, but I am  
baffeled with thisâ€¦.

So any help would be appreciatedâ€¦
