/    Sign up×
Community /Pin to ProfileBookmark

Populating The Subject Line From A Form.

Is it possible to populate the subject line in an email from a form? mailto

The form goes to email not sever side?

Thank you in advance for your help! I know little about JAVASCRIPT. :p

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@denise1authorMay 27.2005 — This code blows the form away. Therefore, I want to know if there is any thing in JavaScrip I could use to keep the form in tact? Thanks


<form action="mailto:xxxxx" method="get" encType="text/plain" onsubmit="

this.subject = document.title;

return checkform(this);">

<input type="hidden" name="subject" value="This is my subject">
Copy linkTweet thisAlerts:
@denise1authorMay 27.2005 — Any Comments!
Copy linkTweet thisAlerts:
@denise1authorMay 27.2005 — method=post or method=get. I need some help. Thank you for your help.
Copy linkTweet thisAlerts:
@felgallMay 27.2005 — Combining a form and a mailto address requires that the person using the form be running a browser that supports it (the latest ones don't) as well as having an email program linked to it (which many people do not). Either use a straight mailto link or a form calling a server side formtomail script if you want it to work for more people.
Copy linkTweet thisAlerts:
@SpectreReturnsMay 28.2005 — mailto: uses get queries to populate its fields. Try:

mailto:[email protected]?subject=The+Subject
Copy linkTweet thisAlerts:
@ddennisMay 27.2010 — Okay, but where to I place this mailto part in the document? And where is it pulling data from the form?

Thanks,

DD?
×

Success!

Help @denise1 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...