Search code examples
javascripthtmlreactjsmailto

Have to send an email by clicking a button in Javascript / ReactJs


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.,


Solution

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

    Sending mail from HTML page with image in the body