Email Form ?

Reply

Join Date: Oct 2006
Posts: 37
Reputation: RiverKqj is an unknown quantity at this point 
Solved Threads: 0
RiverKqj's Avatar
RiverKqj RiverKqj is offline Offline
Light Poster

Email Form ?

 
0
  #1
Feb 5th, 2007
Hi all im looking for a simple script that just has a single form where someone can enter their email address and the form will send that address to my email account , like "Subscribe to Newsletter" style thing...

Thanks all
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 240
Reputation: Inny is an unknown quantity at this point 
Solved Threads: 6
Inny's Avatar
Inny Inny is offline Offline
Posting Whiz in Training

Re: Email Form ?

 
0
  #2
Feb 15th, 2007
try this

HTML and CSS Syntax (Toggle Plain Text)
  1. <form action="mailto:you@yourdmainhere.com" method="post" enctype="text/plain" >
  2. FirstName:<input type="text" name="FirstName">
  3. Email:<input type="text" name="Email">
  4. <input type="submit" name="submit" value="Submit">
  5. </form>
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: Email Form ?

 
0
  #3
Feb 17th, 2007
For that you need to know a server-side such as ASP or PHP. However you can also do it with JavaScript, but it depends upon clients configuration, not safe and not recommended. So use either ASP or PHP.

See this threads

http://www.daniweb.com/techtalkforums/thread58133.html

Or try using these...
http://w3schools.com/asp/asp_send_email.asp
http://w3schools.com/php/php_mail.asp
http://w3schools.com/php/php_secure_mail.asp
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 240
Reputation: Inny is an unknown quantity at this point 
Solved Threads: 6
Inny's Avatar
Inny Inny is offline Offline
Posting Whiz in Training

Re: Email Form ?

 
0
  #4
Feb 17th, 2007
Vishesh, your probably right, but for the sake of learning please explain whjats wrong with my suggestion above? It does what he wants no?
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: Email Form ?

 
0
  #5
Feb 18th, 2007
No, it doen't do what he wants. The thing you have given just draws a form, which just gets inputs and do nothing else. It doent mails that data to you or else... Its just HTML. To make it work you will have to embed a server side script with it.

For doing that you need to learn a server side such as ASP, PHP, CGI etc... Server side means that all the processing would be done in server not on clients computer.

If you want to learn a server side, you may refer to several resources on web... I recommend PHP!

www.w3schools.com
www.asptutorials.info
www.phptutorials.info
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 240
Reputation: Inny is an unknown quantity at this point 
Solved Threads: 6
Inny's Avatar
Inny Inny is offline Offline
Posting Whiz in Training

Re: Email Form ?

 
0
  #6
Feb 18th, 2007
my apology, something like this will serve you

HTML and CSS Syntax (Toggle Plain Text)
  1. <FORM ACTION="http//someserver/cgi-bin/formmail.pl" METHOD="POST">
  2.  
  3. Name: <INPUT TYPE="text" NAME="Name" VALUE="" SIZE="25" MAXLENGTH="50"> <BR>
  4.  
  5. Email: <INPUT TYPE="text" NAME="Email" VALUE="" SIZE="25" MAXLENGTH="50"><BR>
  6.  
  7. <INPUT TYPE="CHECKBOX" NAME="subscribe" CHECKED> Subscribe me to the News letter <BR>
  8.  
  9. Format of the Email:<BR>
  10. <INPUT TYPE="radio" NAME="format" VALUE="html" CHECKED> HTML<BR>
  11. <INPUT TYPE="radio" NAME="format" VALUE="text"> Plain Text<BR>
  12.  
  13. Type of subscription you want:<BR>
  14. <SELECT NAME="type">
  15. <OPTION VALUE="standard"> Standard - FREE
  16. <OPTION VALUE="prof" > Professional - Paid
  17. </SELECT> <BR>
  18.  
  19. Comments to the editor:<BR>
  20. <TEXTAREA NAME="comments" ROWS="7" COLS="30"></TEXTAREA>
  21.  
  22. <input type="hidden" name="to" value="you@somemail.com">
  23.  
  24.  
  25. <BR>
  26. <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Sign Me Up!">
  27. </FORM>
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: Email Form ?

 
0
  #7
Feb 18th, 2007
No, it will also not work. It will just show the form. E-Mail would still be not sent. Reason is same, its all HTML and HTML just knows what to show on browser, to make it dynamic we use scripts. Again you need to embed a server side script.

You try out some web tutorials at w3schools.com. But befire continuing go through the very last chapter ( SUMMARY, WHAT NEXT etc...). It may clarify your doubts.
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 240
Reputation: Inny is an unknown quantity at this point 
Solved Threads: 6
Inny's Avatar
Inny Inny is offline Offline
Posting Whiz in Training

Re: Email Form ?

 
0
  #8
Feb 18th, 2007
He says he wishes a way for a person to email him their own email adress. I beleive both above will serve the purpose, even a 'contact us' button. He does not elaborate on his intention for its use. I know that both above will do exactly that because i tried them, they open the users own email client and they can send.
a simple mailto as in #1 will suffice because he will still receive their adress for whatever purpose he intends. This is all he asks for.

Hi all im looking for a simple script that just has a single form where someone can enter their email address and the form will send that address to my email account , like "Subscribe to Newsletter" style thing...

Thanks all
notice he says "like" subscribe to newsletter, he does not ask specifically for a newsletter system.
Always carry a flagon of whiskey in case of snakebite and furthermore always carry a small snake.
W. C. Fields
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: Email Form ?

 
0
  #9
Feb 19th, 2007
He doen't want any email client to do this job.
He wants something like in websites where we enter our email for subscription, and ofcource no email clent is opened. Try to email someone(member) using daniweb. You will see that no email clent is opened.

What he want is:
1. A textbox which will get the email from visiter i.e. you had made.
2. That email address to be directly mailed to his address. That where we had to do some server side.

What you are saying is not correct because:
1. Not all users use these email clients, including me.
2. Imagine yourself that you went to few website and they ask you for your email. You will enter email address and they will inturn open outlook. Frustating.
3. This approach will rely upon client's configuration(so you may not get what you want), and therefore is not secure, reliable.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: Email Form ?

 
0
  #10
Feb 19th, 2007
He doen't want any email client to do this job.
He wants something like in websites where we enter our email for subscription, and ofcource no email clent is opened. Try to email someone(member) using daniweb. You will see that no email clent is opened.

What he want is:
1. A textbox which will get the email from visiter i.e. you had made.
2. That email address to be directly mailed to his address. That where we had to do some server side.

What you are saying is not correct because:
1. Not all users use these email clients, including me.
2. Imagine yourself that you went to few website and they ask you for your email. You will enter email address and they will inturn open outlook. Frustating.
3. This approach will rely upon client's configuration(so you may not get what you want), and therefore is not secure, reliable.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC