/    Sign up×
Community /Pin to ProfileBookmark

send form info through email

I have created an html form and would like to be able to send it to an email address. I don’t need any kind of script for this to work on macs, but it does not work on pc’s. Is there any javascript that can be used to send the form showing the variables to an email address?

to post a comment
JavaScript

12 Comments(s)

Copy linkTweet thisAlerts:
@khalidali63Mar 10.2003 — action="mailto:[email protected]" should do it,

is that what you were looking for?

Khalid
Copy linkTweet thisAlerts:
@dhermesauthorMar 10.2003 — It seems when I use action=mailto: [email][email protected][/email]

all that happens on a pc is that the email program opens up and a new email is ready to be sent to [email][email protected][/email].

I'm actually wanting to have the form sent through email, but without the email program opening up.

Does that make sense?
Copy linkTweet thisAlerts:
@boojumMar 10.2003 — you dont need any client side scripting, you need server side. more info necissary

[ post your form and cgi script, so people can help you]
Copy linkTweet thisAlerts:
@dhermesauthorMar 10.2003 — http://www.smithads.com/information.html

you can look at my form here and see that the action is set to my email address.

This works perfectly on a mac but not on pc's.
Copy linkTweet thisAlerts:
@khalidali63Mar 10.2003 — Is ther e particular reason you have encttype set to enctype="application/x-www-form-urlencoded">?

and second instead of method= get use post

enctype for plain email should be

enctype="text/plain"

Typically the email app should not open with these settings

Khalid
Copy linkTweet thisAlerts:
@dhermesauthorMar 10.2003 — I haven't done a form like this before, so I wasn''t sure what the encryption type should be. I will take your advice and see if that makes a difference.

Thanks.

dh
Copy linkTweet thisAlerts:
@boojumMar 10.2003 — thats not an official mime type and i have not seen mailto used like that so maybe its a mac centric trick. normaly you have some parsing program that you post your form to, and it sends the email
Copy linkTweet thisAlerts:
@khalidali63Mar 10.2003 — [i]Originally posted by boojum [/i]

[B]thats not an official mime type..........[/B][/QUOTE]


Yes it is,here are allowed enctype values

"application/x-www-form-urlencoded" "multipart/form-data"

"text/plain"

?

Cheers

Khalid
Copy linkTweet thisAlerts:
@boojumMar 10.2003 — i thought

http://www.isi.edu/in-notes/iana/assignments/media-types/media-types

had all the official mime types? its not on the list
Copy linkTweet thisAlerts:
@khalidali63Mar 10.2003 — That might be true,But we are talking about HTML related enctypes,here is what HTML4.01 spec says

enctype = content-type [CI]

This attribute specifies the content type used to submit the form to the server (when the value of method is "post"). The default value for this attribute is "application/x-www-form-urlencoded". ....

Here is the link

http://www.w3.org/TR/html401/interact/forms.html#adef-enctype

Cheers

Khalid
Copy linkTweet thisAlerts:
@dhermesauthorMar 10.2003 — The post method worked fine on a pc, however, it is still requiring an email client in order to send the email. If your email client is not set to send messages automatically, you physically have to open up outlook, or whatever you are using and hit the send button.

I'm trying to figure out how to send through the internet rather than through an email client. I know you can do this with other programming languages, but was wondering if there is a java script for forms that can send the form results to an email address.

Thanks
Copy linkTweet thisAlerts:
@khalidali63Mar 10.2003 — Will be interesting to find out,I still think that there has to be an email client on the clients PC to send email,

?

Lets see

Khalid
×

Success!

Help @dhermes 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,
)...