# Action::Mail

**URL:** <https://www.ruby-forum.com/t/action-mail/110455>\
**Category:** Rails\
**Created:** [July 26, 2007, 2:32pm UTC](https://www.ruby-forum.com/t/action-mail/110455 "2007-07-26T14:32:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rornb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@rornb](https://www.ruby-forum.com/u/rornb)\
**Post date:** [July 26, 2007, 2:32pm UTC](https://www.ruby-forum.com/t/action-mail/110455/1 "2007-07-26T14:32:49Z")

</div>

Hi Everyone

I am learning RoR from a book and I am the part where I am using the  
Action Mailer. And I am about to configuer the e-mail so that I can  
recive and send from a form. But I am stuck on what to replace the  
following code with my own email config.

This is what the book says:

Add the following lines of code to the bottom of your environment.rb as  
well as  
replacing the placeholder values with your specific values:

ActionMailer::Base.server\_settings = {  
:address =\> “[smtp.railssolutions.com](http://smtp.railssolutions.com)”,  
:port =\> 25,  
:domain =\> “[railssolutions.com](http://railssolutions.com)”,  
:authentication =\> :login,  
:user\_name =\> “username”,  
:password =\> “password”,  
}

---

<div class="post-metadata">

**Author:** ![rornb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@rornb](https://www.ruby-forum.com/u/rornb)\
**Post date:** [July 26, 2007, 3:10pm UTC](https://www.ruby-forum.com/t/action-mail/110455/2 "2007-07-26T15:10:36Z")

</div>

Em Quinta 26 Julho 2007 09:32, Dom T. escreveu:

> :domain =\> “[railssolutions.com](http://railssolutions.com)”,  
> :authentication =\> :login,  
> :user\_name =\> “username”,  
> :password =\> “password”,
> 
> }

Do you must change :address, :port, :domain, :user\_name and :password?

HTH,

## – Davi V. removed\_email\_address@domain.invalid removed\_email\_address@domain.invalid

"Religion, ideology, resources, land,  
spite, love or “just because”…  
No matter how pathetic the reason,  
it’s enough to start a war. "

---

<div class="post-metadata">

**Author:** ![rornb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@rornb](https://www.ruby-forum.com/u/rornb)\
**Post date:** [July 26, 2007, 3:22pm UTC](https://www.ruby-forum.com/t/action-mail/110455/3 "2007-07-26T15:22:19Z")

</div>

> Do you must change :address, :port, :domain, :user\_name and :password?
> 
> HTH,

:address =\> “[smtp.mail.yahoo.com](http://smtp.mail.yahoo.com)”,  
:port =\> 25,  
:domain =\> “[yahoo.com](http://yahoo.com)”,  
:authentication =\> :login,  
:user\_name =\> “username”,  
:password =\> “password”,

I replaced it with the follwing does it look ok ?

---

<div class="post-metadata">

**Author:** ![rornb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@rornb](https://www.ruby-forum.com/u/rornb)\
**Post date:** [July 26, 2007, 3:38pm UTC](https://www.ruby-forum.com/t/action-mail/110455/4 "2007-07-26T15:38:41Z")

</div>

On 26 Jul 2007, at 15:22, Dom T. wrote:

> :address =\> “[smtp.mail.yahoo.com](http://smtp.mail.yahoo.com)”,  
> :port =\> 25,  
> :domain =\> “[yahoo.com](http://yahoo.com)”,  
> :authentication =\> :login,  
> :user\_name =\> “username”,

replace “username” with “removed\_email\_address@domain.invalid”

> :password =\> “password”,

replace “password” with your password for your yahoo account.

> I replaced it with the follwing does it look ok ?

As long as your e-mail account is on the yahoo servers, this should do.

Best regards

Peter De Berdt
