PDA

View Full Version : Web Form Submission via eMail


kcmmnem
03-15-2005, 06:02 PM
I have never done what Iím about to ask, so your patience and support is appreciated.

I need to create a web form that can be filled out by users and submitted via email. I do not want to have to depend on the client-side email application/browser, as it is not dependable and I can not ensure it even exists.

So, I am told that my other option is to use a server-side script, which will process the form data, turn it into an email and then send it to the specified email address.

My understand is that the server must be running some kind of web server software and support whatever other server technology (ASP, PHP, .NET, etc.), one may choose to use.

My challenge is the following.

1) I am trying to use a LAN server (supposedly) running IIS, but I do not have access to the Ďcgi-biní directory.
2) Not sure what type of server application its supports (ASP, .NET, PHP, etc.)
3) Not sure what type of, or how to properly setup the necessary script.
4) Not sure how to check the server to find out what web/app software itís running and does/does not support.
5) Not sure if I need any special access/rights to set this up.

Essentially, I need the users to fill out the web form, hit a submit button, have the data parsed by the script and then sent to a pre-specified email address with a pre-populated subject line.

How can I accomplish this task?

Thanks again.

Jim_Shady
03-17-2005, 01:09 PM
I could do with knowing how to do this also!

Any help would be appreciated...

Jim Shady.

domedia
03-17-2005, 01:15 PM
It all depends on your #2:
2) Not sure what type of server application its supports (ASP, .NET, PHP, etc.) Your first step would be to get a hold of anyone knowing anything about your server and get this question answered. This person would most likely be able to tell you which options you have.

Unfortunately, my guess is that you have no access to the lan server in this way. Your lan server is most likely set up to provide you with access to the network, not work as a webserver. But I might be completely wrong, again ask the person running the server.

Anonymous
04-07-2005, 03:58 PM
If you can find out what server technologies are supported...

Most servers support perl/cgi. Matt's Formmail is an excellent place to start. You really don't need to know any scripting at all.

http://www.scriptarchive.com/formmail.html ('http://www.scriptarchive.com/formmail.html')

There is also a PHP version you can find by doing a search in Yahoo or Google.

And another (completely different) free php version at www.tectite.com.

Good luck!

kcmmnem
04-11-2005, 10:54 PM
I appreciate the feedback. I am running IIS 5.0 and ASP VBScript. I am trying to find a 'Formmail' for ASP and test on my local SMTP server first, as a prototype. I'm just not getting it! I've tried to configure several times but no luck.

I need help BIG TIME with first time configuration (hand holding) so I can really grasp the 'ins & outs'. I would like to get everything running [successfully] on my local computer first. It that possible? HELP!!!

I would greatly appreciate any help.

Thanks.

ranjan
04-12-2005, 05:55 AM
http://www.charon.co.uk/content.aspx?categ...27&articleid=26 ('http://www.charon.co.uk/content.aspx?categoryid=27&articleid=26')

kcmmnem
04-13-2005, 07:03 PM
Thanks for the input.

How come, when I click the submit button on my form, it returns a text listing within a new browser of my formmail.asp code thats suppose to process the form?

Thanks.

domedia
04-16-2005, 02:18 PM
this happens when your page is not parsed by the server. You have to make sure you have ASP working on your server/pc.

kcmmnem
04-17-2005, 05:25 PM
Thanks. How can I test it to make sure it's working on the server?

domedia
04-17-2005, 05:36 PM
You just did. If a ASP page is being printed out on the screen instead of being parsed by the computer, it's not working. How to get it to work, I have no idea. I've never dealt with ASP.

gmcrone
04-17-2005, 05:57 PM
When you are running your test you must:

1. Have your local server running.
2. open your page by using http://localhost/webpage.asp ('http://localhost/webpage.asp') in your browser
3. Have your asp page configured to use your ISP's smtp server as unless you have your own domain on your local server, your local smtp server will not work.

Mike.....

kcmmnem
04-19-2005, 07:28 PM
1. Have your local server running. <span style='color:blue'>(Done)</span>

2. open your page by using http://localhost/webpage.asp ('http://localhost/webpage.asp') in your browser <span style='color:blue'>(Working)</span>

3. Have your asp page configured to use your ISP's smtp server as unless you have your own domain on your local server, your local smtp server will not work. <span style='color:red'>(Definitely need some help here)</span>

Item #3 is new territory for me. I would be very greatful if you wouldn't mind walking me through this the first time.
I thought I could use the Default SMTP server within IIS 5.0? Will my ISP's allow me to use their mail server? Will either support the processing of form parsing and resending?
Thanks a bunch!!!

gmcrone
04-19-2005, 08:54 PM
#3 Use your ISP's mail server.

Most ISP's will not allow you to relay mail through them, which is what you would be doing if you tried to use the built-in server under IIS5.

On your test server set your SMTP server to your ISP's with your user name & passcode. This will allow you to test your forms.

When you get ready to upload your asp pages to your host account you have to change the smtp server to your host's server.

Mike...

kcmmnem
04-19-2005, 10:45 PM
Mike,

You'll have to pardon my ignorance, but where exactly does the username and password need to go?
IIS SMTP Server (if so where exactly)? Outlook Express Account? Dreamweaver's Testing Server?
Remember, this is all new to me. :o

Your time, support, and patience are greatly appreciated!

Thank you.

gmcrone
04-22-2005, 08:53 PM
Sorry for the delay.

All the information is in your ASP script.

Mike...