1

I have to send an business email template with dynamic population of Sender/Receiver information with images like ( logo ). Am using the below code with html ( mailto ) option. But am not able to insert images. Can i get any suggestion on how to insert an image in an email template. (Javascript / ReactJS )

var link = "mailto:" + email
+ "&subject=" + escape("Status update")
+ "&body=" + "Dear Customer," + newLine + newLine + body + newLine + 
"Thanks," ; 

Thanks.,

Karthikeyan
  • 211
  • 1
  • 4
  • 15
  • Thanks., but i have tried this already. its not working for me. Do we have anyother suggestions.? – Karthikeyan Oct 17 '17 at 03:30
  • 1
    The conclusion of that other post, which I believe to be correct, is that you can't. If you want fancy e-mails your best bet would be to do that from the server side or through a service. – Ben Oct 17 '17 at 03:34
  • Could you please let me know in brief how to do that via server side..?? I dont have much idea about that. – Karthikeyan Oct 17 '17 at 04:04
  • https://stackoverflow.com/questions/24331347/send-email-server-side-not-mailto-when-html-button-is-hit – Dane Oct 17 '17 at 04:32
  • You may want to take a look at [EmailJS](http://emailjs.com?src=so), which allows sending email using pre-built templates directly from Javascript. Images are also supported. [disclosure - I'm one of the creators] – Sasha Oct 17 '17 at 16:31

1 Answers1

0

You can't. The mailto link only supports text by spec.

Sending mail from HTML page with image in the body

Samuel Neff
  • 73,278
  • 17
  • 138
  • 182