1

Possible Duplicate:
MailTo with HTML body

I want to send email from javascript. I found this post which helped me alot Sending emails with Javascript.

But I need to add image, bold text and color changes in email content.

Any help?

What i tried:

var content = "I want to send email from javascript. <span style='color:red'>I found this post which helped me alot</span><img src='logo.png'/> Sending emails with Javascript"

var link = "mailto:me@example.com"
         + "?cc=myCCaddress@example.com"
         + "&subject=" + escape("This is my subject")
         + "&body=" + escape(content);

window.location.href = link;
Community
  • 1
  • 1
user10
  • 5,186
  • 8
  • 43
  • 64

1 Answers1

1

I don't think it's possible . as far as I know , you can just pass \n for new line

"mailto:me@me.com?body=xx " + escape("\n") + " xx"

why not let user write the conent in email client?

guirong.cao
  • 96
  • 1
  • 6