# Email working

**URL:** <https://www.ruby-forum.com/t/email-working/122350>\
**Category:** Rails\
**Created:** [December 6, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/email-working/122350 "2007-12-06T21:05:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gemblon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ee59a6/32.png) [@gemblon](https://www.ruby-forum.com/u/gemblon)\
**Post date:** [December 6, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/email-working/122350/1 "2007-12-06T21:05:07Z")

</div>

has anybody actually gotten to send email working?

i tried putting this in my environments.rb file,  
and the server will not start with it now.  
i can remove the code and it will,

i am on vista home premium. i have ubuntu too,  
but this is a vista client, ruby 1.8.6 and rails 1.2.6.

here is a sample of the code:

ActionMailer::Base.delivery\_method = :smtp  
ActionMailer::Base.smtp\_settings = {  
:address =\> “[smtp.client.com](http://smtp.client.com)”,  
:authentication =\> :login,  
:user\_name =\> “secret”,  
:password =\> “bigsecret”  
}

i started all this from RESTFUL AUTHENTICATION, but having  
all kinds of trouble. anybody got something that more or less,  
does the same thing but just works mostly?

thanks a bunch

---

<div class="post-metadata">

**Author:** ![gemblon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ee59a6/32.png) [@gemblon](https://www.ruby-forum.com/u/gemblon)\
**Post date:** [December 6, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/email-working/122350/2 "2007-12-06T22:00:26Z")

</div>

What is the server error you are getting? Here is my working config:

ActionMailer::Base.smtp\_settings = {  
:address =\> “[mail.mydomain.com](http://mail.mydomain.com)”,  
:port =\> 25,  
:domain =\> “[domain.com](http://domain.com)”,  
:authentication =\> :login,  
:user\_name =\> “removed\_email\_address@domain.invalid”,  
:password =\> “password”  
}  
ActionMailer::Base.delivery\_method = :smtp  
ActionMailer::Base.perform\_deliveries = true  
ActionMailer::Base.default\_charset = “utf-8”  
ActionMailer::Base.default\_content\_type = “text/html”

On Dec 6, 1:05 pm, “gemblon (t.b.)” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![gemblon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ee59a6/32.png) [@gemblon](https://www.ruby-forum.com/u/gemblon)\
**Post date:** [December 6, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/email-working/122350/3 "2007-12-06T22:46:22Z")

</div>

Matt W. wrote:

> What is the server error you are getting? Here is my working config:
> 
> ActionMailer::Base.smtp\_settings = {  
> :address =\> “[mail.mydomain.com](http://mail.mydomain.com)”,  
> :port =\> 25,  
> …
> 
> On Dec 6, 1:05 pm, “gemblon (t.b.)” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

that worked. i wonder what i did wrong. doh. thanks a bunch…
