|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi
I am creating a website in which I will provide screenshots for windows and mac and I want to add a form with 3 text box and one text area with 2 buttons. The problem is when we click on submit it jumps and opens outlook but if a user is not using outlook then that will create problem for him. so what I want is something which can stop that and as soon as I click on submit it shoots a mail to my email id. If anyone can help me with that then that will be great and I will be thankful to him/her. Please help me. |
|
#2
|
||||
|
||||
|
You need to write an ASP script which utilises a server-side component to send the email for you. What email component(s) is/are available on the server
__________________
selwonk If I've posted some code above, you might think it looks a bit simplistic. It might be. I'd rather people tried the next step themselves rather than getting a full solution on a plate. That way they learn more! |
|
#3
|
|||
|
|||
|
Quote:
Thnx for replying. I think I didn't understand your Question. I am making a website and I got free space on tripod server and I am using that space to do this. So can you please tell me what kind of components do we need. And I have tried following code for this but I am not able to get mail on my account.I got this coding from some website. First of all, HTML page to start things off. <HTML> <BODY> <FORM METHOD=POST ACTION="SendMail.jsp"> Please enter name: <INPUT TYPE=TEXT NAME=username SIZE=20><BR> Please enter email address: <INPUT TYPE=TEXT NAME=email SIZE=20><BR> <P><INPUT TYPE=SUBMIT> </FORM> </BODY> </HTML> Now created SendMail.jsp. <%@ taglib prefix="blx" uri="/blx.tld" %> <HTML> <BODY> <% // Get username. String email = request.getParameter( "email" ); %> <% if ( email == null || email.equals( "" )) { %> Please enter an email address. <% } else { %> <blx:email host="mail.spymac.com" from=gaurav_raswant@spymac.com> <blx:emailTo><%= email %></blx:emailTo> Thank you for sending question. Your mail was received at <%= new java.util.Date() %> </blx:email> Thank you. A confirmation email has been sent to <%= email %> <% } %> </BODY> </HTML> When I clicked on submit it do something and then when I checked my mail I didn't get anything. I hope you understand my problem. I don't want that qutlookexpress should open and the coding I am trying does not open outlook but neither do anything. Can you please help me and I am not sure bout coding in jsp as well I wrote this on notepad and saved it as sendmail.jsp Is it correct or I have to do something else. please help..... |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > problem in form |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|