html contcat form

html contcat form

04 Oct 2011 23:10:54

How to send email using a html contact form same like as asp.net email sending.

I need it with the validation but not in php.

Pls help.

 

Thank u geeks.

Senior   Boarder
Posts: 20
From 15-Aug-2009
You're Points: 92
Bookmark
re:html contcat form06 Oct 2011 20:10:56

Hi,

You can send email in PHP but in the pure html  can not because you need a SMTP server to sends email. Consequently, You have to use the .NET/PHP or other way to connect to your SMTP server and then send email.

Thank you

RRaveen
Gold  Boarder
Posts: 156
From 03-Jun-2009
You're Points: 1106
Bookmark
re:html contcat form06 Oct 2011 20:10:51

Hi,

There is a another way is use the JavaScript to send it. The Javascript has features to send email using EmaiTo option as like below,

function sendMail() {
    var link = "mailto:me@example.com"
             + "?cc=myCCaddress@example.com"
             + "&subject=" + escape("This is my subject")
             + "&body=" + escape(document.getElementById('myText').value)
    ;

    window.location.href = link;
}

But still not secured and not used SMTP to send email .

RRaveen
Gold  Boarder
Posts: 156
From 03-Jun-2009
You're Points: 1106
Bookmark
^ Scroll to Top