Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ General Web Design _ Help with the mailto link and sending someone to another page

Posted by: Mike Wazowski Dec 8 2020, 06:48 AM

Hello! I am trying to figure out for a form link, how to send an email but also redirect someone to another page

Here is my code

What do I do?

CODE
<form action="MAILTO:nnn@example.com?subject=Order from Guy" method="POST">

excl.gif excl.gif excl.gif excl.gif

Posted by: Christian J Dec 8 2020, 08:47 AM

See https://htmlhelp.com/faq/html/forms.html#mailto-form

Posted by: pandy Dec 8 2020, 02:56 PM

To elaborate, normally a script on the server is used (doesn't need to be "CGI" as it says in the FAQ). That script can both send you the email and redirect the user to a thankyou page. With mailto you don't have that option.

Mailto is even more unreliable today when many people use web mail exclusively. It only works if there is an email client installed and if the browser is configured to open said email client. There will also be problems if the user uses a computer at some public place like a school or a library or a friend's computer. In the latter case there may be a an email client that reacts, but it hardly has an account for the friend.

I edited the email address in you post to save you from spam. The bots will pick the address up from here.

Posted by: Mike Wazowski Dec 9 2020, 04:08 AM

QUOTE(pandy @ Dec 8 2020, 07:56 PM) *

To elaborate, normally a script on the server is used (doesn't need to be "CGI" as it says in the FAQ). That script can both send you the email and redirect the user to a thankyou page. With mailto you don't have that option.

Mailto is even more unreliable today when many people use web mail exclusively. It only works if there is an email client installed and if the browser is configured to open said email client. There will also be problems if the user uses a computer at some public place like a school or a library or a friend's computer. In the latter case there may be a an email client that reacts, but it hardly has an account for the friend.

I edited the email address in you post to save you from spam. The bots will pick the address up from here.

Ok Thank you and also thank you for changing my email I didn't even think that I was doing that wacko.gif biggrin.gif

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)