DEV Community

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

Posted on

2

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

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay