# Sending email without using ActionMailer

**URL:** <https://www.ruby-forum.com/t/sending-email-without-using-actionmailer/103390>\
**Category:** Rails\
**Created:** [May 5, 2007, 12:43am UTC](https://www.ruby-forum.com/t/sending-email-without-using-actionmailer/103390 "2007-05-05T00:43:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/13edae/32.png) [@kiran](https://www.ruby-forum.com/u/kiran)\
**Post date:** [May 5, 2007, 12:43am UTC](https://www.ruby-forum.com/t/sending-email-without-using-actionmailer/103390/1 "2007-05-05T00:43:00Z")

</div>

Hi,

I am getting problem using action mailer. can some one advice what are  
the other options for sending email in ruby on rails

Thanks  
Kiran

---

<div class="post-metadata">

**Author:** ![kiran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/13edae/32.png) [@kiran](https://www.ruby-forum.com/u/kiran)\
**Post date:** [May 5, 2007, 1:29am UTC](https://www.ruby-forum.com/t/sending-email-without-using-actionmailer/103390/2 "2007-05-05T01:29:54Z")

</div>

Kiran wrote:

> Hi,
> 
> I am getting problem using action mailer. can some one advice what are  
> the other options for sending email in ruby on rails
> 
> Thanks  
> Kiran

You could try following

[http://ruby.about.com/od/tutorials/ss/ruby\_email\_5.htm](http://ruby.about.com/od/tutorials/ss/ruby_email_5.htm)

where they explain how to use “net/smtp”

If that doesn’t help – what are your difficulties?

Stephan

---

<div class="post-metadata">

**Author:** ![kiran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/13edae/32.png) [@kiran](https://www.ruby-forum.com/u/kiran)\
**Post date:** [May 6, 2007, 9:25am UTC](https://www.ruby-forum.com/t/sending-email-without-using-actionmailer/103390/3 "2007-05-06T09:25:08Z")

</div>

Stephan W. wrote:

> 

There’s one more thing that should be added to the code and explanation  
given there. After you follow through the code given on that page, you  
may find that the basic sample code is lacking in one major respect – it  
does not set the date on the outgoing email. That means that there is no  
specific “sent time” for the email and its treatment depends on the  
email client. For example, Thunderbird marks it with the date/ time at  
which it was downloaded.

I wrote up this and its simple solution here:  
[http://notepad.onghu.com/2007/3/26/sending-email-with-ruby](http://notepad.onghu.com/2007/3/26/sending-email-with-ruby)

Hope it helps.  
Cheers,  
Mohit.
