How to send an email in Angular

Viewed 47

I'm interested in sending an email in Agular or in Typescript in such a way that they click on a certain email address and then it will open in Gmail And can't do it in any way

1 Answers

To open an email using the user's preferred email client you can use a normal anchor tag:

<a href="mailto:SOME_EMAIL">Send an email</a>

You can also handle phone numbers and other types this way: Mozilla Docs for Anchor Tags

Related