Trouble sending html in email with Pony gem
Posted
by Gearóid
on Stack Overflow
See other posts from Stack Overflow
or by Gearóid
Published on 2010-06-16T10:39:42Z
Indexed on
2010/06/16
10:42 UTC
Read the original article
Hit count: 298
Hi,
I've found this gem to be a great and easy way to send mail but I can't seem to send any html in it. If I write the following:
Pony.mail(
:to => message[:to],
:from => @account[:from],
:subject => message[:subject],
:content_type => 'text/html',
:html_body => "<h1>hey there!</h1>",
:via => :smtp,
:smtp => {
:host => MY_HOST,
:port => PORT,
:auth => AUTH,
:user => MY_USER,
:password => MY_PASSWORD,
:tls => true } )
The code above send a mail but the message appears to be empty in gmail.
Any help would be greatly appreciated on this.
Thanks.
© Stack Overflow or respective owner