Mailto Links

If you are reading this post, I hope this will help you to add HTML element in your code which will open your default mail program.

Basic option

A very minimal mailto html element will look the below.

<a href="mailto:nobody@somedomain.com">Email Us</a>  

When the user clicks the above element in the browser, it will open the default mail client by prefilling the mentioned email id.

Advanced option

The ultimate aim of the mailto links option is to open the default mail program with prefilled To address in it.

However, it got more advanced options to make the mailto even powerful like filling the bcc, cc, subject and body of mail and all.

Lets look into it.

mailto Paramaters

ParameterPurpose
mailto:nobody@somedomain.comIt fills the email TO mail address
cc=somebody@somedomain.comIt fills carbon copy (cc) mail address
bcc=hello@somedomain.comIt fills blind carbon copy (bcc) mail address
subject=GreetingsIt fills the subject of the mail
body=body contentIt fills body/content of the mail

mailto Delimiters

DelimiterPurpose
?To add the first paramter
&To add additional parameter

That’s it.

Lets hit the option one by one with example.

Add subject

Space should work fine, if you want to be more accurate you can add %20 instead of space and similar encoding to various symbols in the places of text

<a href="mailto:nobody@somedomain.com?subject=Hello everyone">Email Us</a>  
mail subject

Add CC

<a href="mailto:nobody@somedomain.com?cc=info@somedomain.com">Email Us</a>  
mail cc

Add BCC

<a href="mailto:nobody@somedomain.com?bcc=hidden@somedomain.com">Email Us</a>  
mail bcc

Add Body

<a href="mailto:nobody@somedomain.com?body=long-present-here">Email Us</a>  

Combining parameters

Using the & symbol, we can combine the various parameters

<a href="mailto:nobody@somedomain.com?cc=info@somedomain.com&bcc=hidden@somedomain.com&subject=Hello world">Email Us</a>  

Credits

Photo by Austin Distel on Unsplash

100 Web Project Ideas

Whenever I start learning a new Language or Framework, I used to create small apps or programs to practice.

Always, I try to build ToDo app if I learn Web Framework or random number generator if it a programming language and guess the number game.

I wish to build a list of items to help beginners to practice when they are learning something new.

So here is my contribution.

I have created a GitHub repo to list 100 Web Project Ideas

https://github.com/PandiyanCool/100-project-ideas

I wish you should help me to reach this list to more people who actually in need.

Feel free to star or fork or send PR to the repository.

And if you are using Twitter, send me hi to motivate me. I love it.

Here is a twitter thread I have created to reach more Devs.

That’s for now.

Hey @pandiyan_cool I just checked out your #100WebProjects list.

If you are reading or trying this, do let me know. I will be very happy.

Cheers, Happy Coding!

Topics

  1. Quote generator
  2. Todo app
  3. Countdown timer
  4. Stopwatch
  5. Flip a coin app
  6. World clock dashboard
  7. Good morning slack bot
  8. Daily Journal bot
  9. Mail composer UI
  10. Interactive login form
  11. Offline page in PWA
  12. Toaster message
  13. Color picker jumbtron
  14. RSS Feed viewer
  15. Json viewer
  16. Syntax highlight
  17. Json to csv
  18. Simple calculator UI
  19. Free image library
  20. Messaging to webhook
  21. Leave reason generator
  22. Visual web bookmarker
  23. Pomodoro timer
  24. Css ruler
  25. Instagram logo in css
  26. BAFFLE effect in css
  27. Motivation bot
  28. Twitter hash tag viewer
  29. Minimalist twitter profile page
  30. Minimalist github profile page
  31. Site map into flex layout
  32. Twitter bot to fav your replies
  33. Twitter bot to welcome new followers
  34. Twitter bot to send weekly report
  35. Gif search engine
  36. Good first issue hunter
  37. One download page for your fav exe
  38. Virtual site map for fav sites
  39. PWA – funny sounds directory
  40. PWA – Scolding app if late sleep
  41. PWA – Stress burster – tap me 20 times in 3 seconds
  42. PWA – Internet connection game
  43. Quotes instead of loader
  44. Comments thread UI
  45. API document with swagger json
  46. Terminal effect in css
  47. CLI for daily activities
  48. Npm library to do text operation
  49. Quiz minimalist UI
  50. Yes or No fact checking UI
  51. Render Google map for location
  52. Selfie app with frames
  53. Flames game
  54. Guess the number game
  55. Sound match game
  56. Snake game
  57. Flight time check app
  58. Weather app
  59. Time sheet app
  60. Fan simulator
  61. Css loader
  62. Minimalist resume
  63. Virtual Visiting card
  64. Custom Birthday cards
  65. Work log app (punch machine)
  66. Catch me bug game
  67. Guess the card game
  68. Clipboard history
  69. Smiley UI mock
  70. Instagram story mock
  71. Tinder suggestion mock
  72. Fake api
  73. Pinterest view for github project
  74. CheatSheet generator
  75. Social media activities dashboard
  76. Birthday reminder
  77. Reminder app if you are leaving late at work
  78. Recipe tracker
  79. Sarcasm meter
  80. Why not analog calendar?
  81. Movie rating at one place
  82. Bookshelf
  83. Energy drainer visualisation
  84. YAGNI checklist
  85. Tweet scheduler mock
  86. Image crop tool
  87. Windows blue screen error page
  88. Never seen 404 page
  89. Sarcastic 401 page
  90. Play music when page offline
  91. Render tweet into gif
  92. CSS blob maker
  93. Cute animals video search results
  94. Mock duckduckgo results page
  95. 1000 pixels custom image
  96. Swappable 5×5 grids
  97. Moments celebration timer
  98. Youtube subscribers count mock
  99. Subscribe and bell icon gif
  100. A Perfect portfolio ✌️