sending mail from html page with javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • talhakarkun
    New Member
    • Jun 2010
    • 12

    sending mail from html page with javascript

    hi all

    i have one html page which includes following input control from user:

    senderEmailId:
    Subject:
    body:
    receiverEmailId :

    submit button:

    but i don't know why mail send from html pages.
    i have already done sending mail in asp.net and PHP
    but don't how its possible in html pages..

    can anyone tell me how its possible with or without javascript.

    if u have whole source code or solution or any of URL which give me perfact solution then pls give me ASAP


    Thanks in advance..

    Talha Karkun
    Web Developer
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    you cannot send email through JavaScript. you cannot send email through HTML either (all you can do is make a link with some options, that opens your default mail application).

    you would best use a server side language (as you already mentioned)

    however, you can make JavaScript make (e.g.) PHP send an email (via AJAX)

    Comment

    Working...