Home > database >  How to open outlook/any default mailing application with HTML body in angular?
How to open outlook/any default mailing application with HTML body in angular?

Time:03-21

I have an application that has support email. On click on it have to open Outlook with HTML body. How to open outlook/any default mailing application with HTML body in angular ?

CodePudding user response:

You can use this,

<a href="mailto:[email protected]">Email Us</a>

Adding a subject and body,

<a href="mailto:[email protected]?subject=Important!&body=Hi.">Email Us</a>

CodePudding user response:

You can use an href with the mailto attribute

<a href="mailto:[email protected]">Jon Doe</a>

  • Related