/    Sign up×
Community /Pin to ProfileBookmark

Mailto for offline HTML form

Hi, I am working on an offline HTML form that is supposed to mail certain information using the mailto action… ugly, I know, but it is the only option at this point.

I have a field that will be manually filled with the recipient’s email address. Since I am a total newbie, could someone enlighten me and tell me how can I get the contents of the form emailed to this address?

Right now the form tag is like this:
<form action=”mailto:[email protected]” method=”POST” onSubmit=”return CheckForm(this)” ENCTYPE=”text/plain”>

The email input field is “b_email”

Any help will be totally appreciated!

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@JMRKERSep 24.2007 — Do a search of this forum with 'email body' to get the following:

http://www.webdeveloper.com/forum/showthread.php?t=158733

http://www.webdeveloper.com/forum/showthread.php?t=155379

plus lots of others.
Copy linkTweet thisAlerts:
@criftauthorSep 24.2007 — Do a search of this forum with 'email body' to get the following:

http://www.webdeveloper.com/forum/showthread.php?t=158733

http://www.webdeveloper.com/forum/showthread.php?t=155379

plus lots of others.[/QUOTE]


Maybe I wasn't too clear... sorry but my english is not so good.

I have a form and one of the text input fields is the recipient email (name='b_email').

It cannot be hard-coded in the mailto: action.

mailto action must be populated with the recipient taken from the b_email field of the HTML form.
Copy linkTweet thisAlerts:
@felgallSep 24.2007 — <form action="mailto:...

will not work in modern web browsers. They require a script in the action field and only allow mailto: in links.
Copy linkTweet thisAlerts:
@slaughtersSep 24.2007 — <form action="mailto:...

will not work in modern web browsers....[/QUOTE]


Specifically which ? The Holy Quadinity ? (IE7/Firefox/Opera/Safari)
Copy linkTweet thisAlerts:
@criftauthorSep 24.2007 — It works when hardcoded mailto: address is used with IE7

But still... how do I populate the mailto: address with the result of the "b_mail" form field? ?
Copy linkTweet thisAlerts:
@JMRKERSep 24.2007 — Are you trying to accomplish the same thing as this person?

See: http://www.webdeveloper.com/forum/showthread.php?t=161527
Copy linkTweet thisAlerts:
@criftauthorSep 24.2007 — Hmm... almost, I think.

The page that contains the form also contains a function that displays checkout cart contents.

Below this, we have an input textfield for "Name" and then another one for "Email recipient"

First input field is "b_name" and second is "b_email"

Right now, the form tag is like this and it works:

<form action="mailto:[email protected]" method="POST" onSubmit="return CheckForm(this)" ENCTYPE="text/plain">

How should it be if I wanted the [email][email protected][/email] replaced with "b_mail"?

I am quite JS ignorant, keep in mind... tia!
Copy linkTweet thisAlerts:
@criftauthorSep 25.2007 — Anyone? Is my question too stupid or is it a real challenge?
×

Success!

Help @crift 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.6,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...