View Full Version : Forms
Tazuk
15th January 2006, 17:00
I had a form on my website, the action was to mail the information to my company mail but when i pressed submit an aol new email page popped up for me to send mail but no information contained.
What is the best way to get the information contained in a form?
TAZ
JustOneUK
15th January 2006, 19:40
if you need forms on your site that are easy to configure, http://forum.softwaretakeaway.com/viewtopic.php?t=18
crus
15th January 2006, 20:50
Hi Taz,
Avoid the 'mailto' tag.
Get a form that posts the details to a script which then uses the local smtp server on your webserver to send the mail to you.
This way you avoid not receiving enquiries from those without the option to use outlook or whatever on their machine.
Try a search for 'php mail form' or 'asp mail form'
Hope this helps.
D
DotNetWebs
16th January 2006, 13:04
Hi Taz
As crus says its best to avoid the 'mailto:' tag.
As you appear to be on a Windows 2003 server your best bet would probably be to use the .net 'MailMessage' class:
Here is a link to the MSDN example.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebmailmailmessageclasstopic.asp
I would recommend you try the C# version instead of the Visual Basic version
You will also have to change some of the variables - specifically 'txtMailServer.Text="smarthost" ' . Replace smarthost with the name of your SMTP server.
PM if you want any free advice abut this.
Regards
Dotty
slight disclaimer - this MSDN example mixes code and HTML on the same page. While fine for a simple example like this I would not normally recommend this approach