DEV Community

Cover image for SEND MAILS USING HTML ONLY
SAIFULLAH🇮🇳
SAIFULLAH🇮🇳

Posted on

SEND MAILS USING HTML ONLY

Do you know we can send email using html tags only!!
lets begin...

Html Email tag

HTML < a > tag provides you option to specify an email address to send an email. while using < a > tag as an Email tag, you will use
mailto:email address (we are not using http) along with href attribute.
Below is the pictorial code of above explanation 👇

HTML EMAIL TAG

Booom!!! you're done.

BONUS👻

Send Multiple email
Html tag also provide multiple option to send email to multiple email address.
see below 👇

multiple tag

Add CC & BCC
Html5 also allows you to add CARBON COPY(CC) and BLIND CARBON COPY (BCC) fields when you open the new mail with the help of href attribute.

CC AND BCC TAG

Add Subject
Email is nothing without subject right 🤔, Don't worry in Html5 we can add a subject using Subject key within < a > tag.
below is the code 👇

Subject tag

So let's sum up our whole learning in one example below!!!

All in one

Thank you!!!
Any suggestions is appreciated.

Do check my previous posts you will find it useful..

Top comments (0)