Forum: Ruby on Rails unable to send html format through mail

Posted by honey ruby (Guest)
on 2011-11-16 09:22
(Received via mailing list)
hi everyone out there when i am trying to send the mail with html tags
i am getting the same tags in the mail. i have named the file
with .html.erb only .please help me

thanks in advance
Posted by comopasta Gr (comopasta)
on 2011-11-16 10:29
honey ruby wrote in post #1032102:
> hi everyone out there when i am trying to send the mail with html tags
> i am getting the same tags in the mail. i have named the file
> with .html.erb only .please help me
>
> thanks in advance

You are giving really few details to help you. I am not sure if I 
understand your problem. So you send html tags and get the same html 
tags in the email.
Well based on your text it sounds like you have no problem ;-)

I assume you have followed the basic Rails guide about sending emails: 
http://guides.rubyonrails.org/action_mailer_basics.html

Cheers.
Posted by priyanka pathak (priyanka_p)
on 2011-11-16 13:41
Hello,
  Set content_type "text/html" in mailer method. Hope this will help 
you.
Posted by honey jadala (honeyruby)
on 2011-11-16 14:36
(Received via mailing list)
Thanks a lot priyanka pathak .I appreciate for your valuable reply.
Posted by Amit Acharya (Guest)
on 2011-11-16 15:58
(Received via mailing list)
You can try pony gem. allows you to send mail body with html content.
This message (including any attachments) contains confidential 
information
intended for a specific individual and purpose, and is protected by law.
If you are not the intended recipient, you should delete this message. 
Any
disclosure, copying, or distribution of this message, or the taking of 
any
action based on it, is strictly prohibited.

 Please print this if absolutely necessary; Save trees, Save Earth !!
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.