简体   繁体   中英

Form to Set body of E-mail via mailto in E-Mail Newsletter

Is there something we're missing to get the following code working in E-Mail clients / Web Mail:

<form action="mailto:a@b.com">
<input type="hidden" name="Subject" value="Email subject">
<textarea style="resize:none;" rows="5" cols="22" value="Body" name="Body">Default text area</textarea><br />
<input type="submit" name="Ask Question" >
</form>

The idea is that the recipient can ask a question of our team by typing their question into a text area ('Body') and clicking the button will open their default mail client/web mail with the message nicely composed for them to review and click send.

Clearly any kind of PHP or scripting is off limits as this strictly to be used in an e-mail newsletter template.

try to use this one with

<a href="mailto:someone@example.com?subject=MySubject&body=Mymessage"> Send mail </a>

you need to get the message and subject value from form and add that in link . also try to use with your form

<form action="mailto:myforms@mydomain.com" enctype="text/plain" >

also you can try this one

<form action= "mailto:myforms@mydomain.com?subject=myform_submission" enctype="text/plain" onsubmit="location.href='thanks.html';" >

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM