/    Sign up×
Community /Pin to ProfileBookmark

email form with javascript?

I have a web page…when that page loads, i want an HTML page to be sent via email to someone’s email address. but I don’t want it to be an attachment, I need it to be part of the body. I also need to add a subject is that is possible…

thanks in advance!

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@AdamGundryAug 03.2004 — You need a server-side language to do this properly. Simple HTML mailto: forms have very little control over the way the email is sent.

Adam
Copy linkTweet thisAlerts:
@mraspillerauthorAug 03.2004 — Adam,

thank for the reply...I figured that I needed more than just html, but how do I do it?

can i do it with javascript?

?
Copy linkTweet thisAlerts:
@AdamGundryAug 03.2004 — JavaScript runs on the client side. It is capable of automating HTML mailto: forms, but not to the level you require. Any form made in this way will prompt the user before being sent and will contain just a list of form fields and values.

As I said, you really need a server-side language such as PHP or Perl. These have full email facilities and can send exactly what you need. I suggest you find out which language(s) you have available with your host, and post in the appropriate forum.

Adam
Copy linkTweet thisAlerts:
@mraspillerauthorAug 03.2004 — Okay thanks for all your help ?

sorry, i thought javascript was server side...
×

Success!

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