HighDots Forums  

send email having some fields on the form using only html andjavascript anybody knows

Javascript JavaScript language (comp.lang.javascript)


Discuss send email having some fields on the form using only html andjavascript anybody knows in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shailendra deshpande
 
Posts: n/a

Default send email having some fields on the form using only html andjavascript anybody knows - 06-16-2008 , 09:44 AM






right now i have only pain html page.and i want to send email through
it using javascript

plz. anybody tell me how to send email from plain html page using
javascript.


thanks in advance

Shailendra Deshpande

Reply With Quote
  #2  
Old   
Bart Friederichs
 
Posts: n/a

Default Re: send email having some fields on the form using only html andjavascript anybody knows - 06-16-2008 , 10:25 AM






shailendra deshpande wrote:
Quote:
right now i have only pain html page.and i want to send email through
it using javascript

plz. anybody tell me how to send email from plain html page using
javascript.
JavaScript cannot send e-mail. It's a client side scripting language.
Sending e-mails in webpages is usually done with a HTML form, that
triggers a server-side script (PHP/Perl/ASP) that does the e-mailing.

Another way is the HTML 'mailto' target in A tags. In that case, the
browser will fire up the locally installed e-mail client to do the
e-mailing.

Bart


Reply With Quote
  #3  
Old   
Evertjan.
 
Posts: n/a

Default Re: send email having some fields on the form using only html and javascript anybody knows - 06-16-2008 , 10:42 AM



Bart Friederichs wrote on 16 jun 2008 in comp.lang.javascript:

Quote:
JavaScript cannot send e-mail. It's a client side scripting language.
It is not, Bart,

I can send emails using serverside javascript.

And javascript can also be used in many other interpreters than only
browser or server.

I can even imagine a "stand alone" [cscript or wscript] javascript script
used as a email poster.

Quote:
Sending e-mails in webpages is usually done with a HTML form, that
triggers a server-side script (PHP/Perl/ASP) that does the e-mailing.
Indeed,
where ASP is not a scripting language
but a platform for vbscript or javascript.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


Reply With Quote
  #4  
Old   
VK
 
Posts: n/a

Default Re: send email having some fields on the form using only html andjavascript anybody knows - 06-16-2008 , 11:33 AM



On Jun 16, 7:42 pm, "Evertjan." <exjxw.hannivo... (AT) interxnl (DOT) net> wrote:
Quote:
Bart Friederichs wrote on 16 jun 2008 in comp.lang.javascript:

JavaScript cannot send e-mail. It's a client side scripting language.

It is not, Bart,

I can send emails using serverside javascript.
But does it help anyhow to OP? From his question it is plenty clear
that he's asking about a client-side Javascript solution. Moreover a
person aware of server-side Javascript implementations and having one
of them manually installed - because no one hosting plan comes with
server-side Javascript - such person most definitely wouldn't need a
help to submit a plain HTML form. IMO.

To OP: normally even free hosting providers, not talking about paid
one, do provide some basic type of server-side form processing script.
You just need to find out in provider's help section what form action
attribute and additional fields to set in your form to use it.


Reply With Quote
  #5  
Old   
Thomas 'PointedEars' Lahn
 
Posts: n/a

Default Re: send email having some fields on the form using only html andjavascript anybody knows - 06-16-2008 , 04:29 PM



Bart Friederichs wrote:
Quote:
shailendra deshpande wrote:
right now i have only pain html page.and i want to send email through
it using javascript

plz. anybody tell me how to send email from plain html page using
javascript.

JavaScript cannot send e-mail. It's a client side scripting language.
Sigh. [psf 10.1]

It is probably better known to be used client-side than server-side,
but that does not make it (or rather any ECMAScript implementation) a
client-side language. As a matter of fact, no programming language
is restricted to be used either client-side or server-side.

Quote:
Sending e-mails in webpages is usually done with a HTML form, that
triggers a server-side script (PHP/Perl/ASP) that does the e-mailing.
It is the only viable way.

Quote:
Another way is the HTML 'mailto' target in A tags.
`A' _elements_

Quote:
In that case, the browser will fire up the locally installed e-mail
client to do the e-mailing.
If there is one, if the HTML user agent (of which Web browsers are only a
subset) is configured to use it, and if the e-mail client is configured for
accessing a mailbox. Which are the major problems with this; search the
archives.


PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.