# Mikel's mail gem with Gmail

**URL:** <https://www.ruby-forum.com/t/mikels-mail-gem-with-gmail/179585>\
**Category:** Rails\
**Created:** [November 29, 2009, 4:50pm UTC](https://www.ruby-forum.com/t/mikels-mail-gem-with-gmail/179585 "2009-11-29T16:50:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![artchrst](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Post date:** [November 29, 2009, 4:50pm UTC](https://www.ruby-forum.com/t/mikels-mail-gem-with-gmail/179585/1 "2009-11-29T16:50:55Z")

</div>

I am using rails 2.3.4 and ruby 1.8.7

Setting up the SMTP via Gmail but failed:  
ActionMailer::Base.smtp\_settings = {  
:address =\> “[smtp.gmail.com](http://smtp.gmail.com)”,  
:port =\> 587,  
:authentication =\> :plain,  
:enable\_starttls\_auto =\> true,  
:user\_name =\> “noreply@gmail\_or\_your\_google\_domain.com”,  
:password =\> “chucknorris”  
}

Got:  
Must issue a STARTTLS command (seems that many ppl said with the  
enable\_starttls\_auto setting, I shouldn’t see this error).

Then I tried to use Mikel’s mail:

> **[GitHub - mikel/mail: A Really Ruby Mail Library](https://github.com/mikel/mail)**
>
> A Really Ruby Mail Library. Contribute to mikel/mail development by creating an account on GitHub.

I got execution expired timeout error on my deliver.

My question is whether Mikel’s gem will use the  
ActionMailer::Base.smtp\_settings? and How should I set up the SMTP via  
Gmail?

Thanks!  
Arthur
