Click here to Skip to main content
12,823,984 members (43,663 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: HTML
I have a asp.net web application on which one HTML page for contact us...

The contact us page contains those fields:

  • Name

  • Email

  • Message


And Finally the Submit button.

When I click on Submit button the form data must submitted to the given email id.

It works fine using Mail_to method but it opens the client side outlook which i don't want.

Could you give me some information about that?

Extra notes:
I have used server side code to send the email in lots of My project. But now my requirement is only to send the email from HTML page because my next web site is pure HTML based requirement.

Thanks in advance.
Posted 14-Sep-12 19:23pm
Updated 17-Sep-12 1:55am
Joan M89.9K
v4
Comments
_Amy 15-Sep-12 2:10am
   
Check my updated answer. :)
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

hii,

i fyou dont want to open outlook then send mail using server side language i.e. using c#.net or vb.net.
for reference follow given link

Send Mail / Contact Form using ASP.NET and C#[^]
  Permalink  
Comments
vithal wadje 15-Sep-12 2:06am
   
Thanks sir but
I have used server side code to send the email in lots of My project..but now my requirement is only to send the email from HTML page because my next web site is pure HTML based requirement
Ganesh Nikam 15-Sep-12 2:12am
   
hey dude ,
refer this article you will get your ans

http://stackoverflow.com/questions/7647931/sending-email-from-html-using-javascript-without-default-outlook
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
v3
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 4

Hello,
You Can Attach all mail Contents in Anchor Tag with the help of Query String.
  Permalink  
Comments
vithal wadje 15-Sep-12 4:29am
   
thanks sir give any example
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 6

hi..
its easy i had done for feedback form in which i am use asp page for send mail using smtp server.
.aspx page code

<form name ="ctrlForm" action="contact_us.asp" method="post" >
Name*<input id="Text1" type="text" name="Name" />
Email*<input id="Text2" type="text" name="Email" />
Phone*<input id="Text3"type="text"  class="input_field" name="phone" />
Message*<textarea id="Textarea1" type="text" cols="0" name="text" />
<input id="submit1" class="submit_btn" name="submit" type="submit" value="Send" >




.asp file code(contact_us.asp)


<%@ LANGUAGE="VBSCRIPT" %>
  Permalink  
Comments
Callijah 3-Jan-14 10:53am
   
I am a coding beginner, what do I do with each of the sections you have posted? I used the first in a simple HTML box for our website. What do I do with the larger portion? Thank You.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 17 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100