Code needed Urgently  | |
January 5th, 2009, 06:49 AM
|
#1 (permalink)
| | Junior Member
Join Date: Jan 2009
Posts: 4
| Code needed Urgently
Hi,
I would like to know as to how a cotact us page in a website is developed and executed in a home PC.The page contains Name, Address, From email and a message Options and a Submit button.so once any user clicks this Submit button the mail should go to the concerned Mail ID.
I want the full code as to how this can be done.Where do we write the From and To Email ID's in the Html code.Plz help its important............ [FONT='Arial','sans-serif']Your Name[/font] [FONT='Arial','sans-serif']E-Mail[/font] [FONT='Arial','sans-serif']Company[/font] [FONT='Arial','sans-serif']Address[/font] [FONT='Arial','sans-serif']City[/font] [FONT='Times New Roman','serif']Pin [/font] [FONT='Arial','sans-serif']Country[/font] [FONT='Arial','sans-serif']Message [/font] <inputTYPE="submit"value="Submit">
How do i test this in my home pc. hOW DO I DO THE EMAIL SETTINGS once submit button is clicked.Plz reply its Urgent........... |
| |
January 5th, 2009, 12:55 PM
|
#2 (permalink)
| | Junior Member
Join Date: Jan 2009
Posts: 10
| |
| |
January 5th, 2009, 11:11 PM
|
#3 (permalink)
| | Junior Member
Join Date: Jan 2009
Posts: 4
|
Thank u fraksken for your advice,but i need this code to run in a html page i hav IIS in my system will it run there, am using visual studio for developin the site.plz tell me the code for this to be tested in my PC. |
| |
January 7th, 2009, 11:28 AM
|
#4 (permalink)
| | Member
Join Date: Jul 2008 Location: Boston, MA
Posts: 183
| |
| |
January 10th, 2009, 01:45 PM
|
#5 (permalink)
| | Junior Member
Join Date: Jan 2009
Posts: 4
| Thanx
Thank u for all the help..... but i hav few more doubts,i would appreciate if some1 could really help me out
--->i have a contacts.htm html page having a form which has follwing fields Your Name,E-Mail ,Company ,Address ,Subject ,Message ---> i need to send a smtp mail so i create another contacts.aspx page and this is refered by the contacts.htm page Code in contacts.htm <formid="form1"action="contacts.aspx"method="post"runat="server"> --->i dont know where this code in contacts.aspx page to be put i.e in code behind or in UI page. mymail.To="";
// mymail.From="";
// mymail.Subject="The Famous";
// mymail.Body="Hello World";
// SmtpMail.SmtpServer="localhost";
// SmtpMail.Send(mymail) i dont want this aspx page to be seen by user it must just execute the code once Submit button in contacts.htm page is clicked. i dont know how to do this i.e link .aspx and .htm page wat is the code am missing ???? --->Please tell me how to hide this aspx page from the end users. I am new in asp.net ,any help would be great. hope i hav put the query properly.... Thanx in advance |
| |
January 10th, 2009, 08:01 PM
|
#6 (permalink)
| | Member
Join Date: Jul 2008 Location: Boston, MA
Posts: 183
|
sorry i'm not familiar with asp.net... So i will give you purely a guess... Please by no means feel that this is coming from someone who knows what they're talking about.
I would take an approach similar to a javascript/php combination. Do an on click event; where when the user clicks submit the stuff in the text boxes is sent to a processing script in a different file. I did this with a php application and it worked real well. I actually put the processing code at the start of the form. Such that if my information array was populated it would run the processing script, and if not it would just present the page regularly |
| |
January 11th, 2009, 10:12 AM
|
#7 (permalink)
| | Junior Member
Join Date: Jan 2009
Posts: 4
|
could you plz tell me how do i specify the path of the file having script to be executed in the onclick event in htm page.
pLz give me a code format....
Thank you. |
| |
January 11th, 2009, 08:29 PM
|
#8 (permalink)
| | Member
Join Date: Jul 2008 Location: Boston, MA
Posts: 183
|
i'm sorry i will guide you but i will not do your project for you... use google... i searched for: onclick() run script
this gave me the answer you'll need |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |