How can I send an HTML email from a browser client?
I want to send an email in HTML to a user from browser client i.e send mail from Gmail, Yahoo, etc.
I paste the HTML I want to send in the text area, but the HTML is not getting rendered when I开发者_开发知识库 receive it.
HTML emails need a content-type: text/html
header otherwise they are assumed to be plain text. You do not mention what language you are using, but if you are using PHP, you can use PHP Mailer to make sending HTML emails a little easier.
<textarea>
tag is for user input. Users can't insert any data in mails, so this tag won't be rendered. If you just showing the information, use tag <p>
instead.
http://www.labnol.org/internet/send-html-email/19672/
Be careful with how you use this though, GMail could very well blacklist you if your recipient list is too long. I use it all the time for tests.
精彩评论