Sending email without using ActionMailer

Stephan Wehner wrote:

Kiran wrote:


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

You could try following

where they explain how to use "net/smtp"

If that doesn't help -- what are your difficulties?


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:

Hope it helps.