"mailto:" attribute issues | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

"mailto:" attribute issues

This attribute opens the mail application in my system. How do I make it open in the same browser ? Is there any specific code for ?

29th Nov 2023, 4:49 PM
Aditi
Aditi - avatar
2 Answers
+ 7
As far as I know mailto opens your default email client. It depends on your os settings or your browser settings. https://helpdesk.telebroad.com/support/solutions/articles/4000185298-changing-the-default-email-app-windows-macos-chrome-firefox
29th Nov 2023, 5:11 PM
Denise Roßberg
Denise Roßberg - avatar
+ 4
The mailto: tag requests an email be generated and this will use whatever your OS defaults are usually. If you want the mailing (of a form or similar) to be handled more discreetly you should use a php mailer script. These are easy to find online and install in your site.
29th Nov 2023, 7:04 PM
StuartH
StuartH - avatar