简体   繁体   中英

How to send an email in Angular

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM