Hey, I have a page with 3 text boxes as well as a submit button... I want to email that information the user inputs in the textboxes WITHOUT using Outlook or any type of mail client that someone is just expected to have...
A little advanced for me.. any help would be appreciated..
I can use anything, just dont want it to be like "mailto:[email protected]" because that automatically opens up Outlook and if you dont have an email account set up, you cant send it..
right, so you want to send it though script, which is pretty easy. I have a script that can read any form and send it to any address you put. it is a php script, if that is ok
ok it is the text file rename the extension to .php
now in your form, have the action point to the script. then in the text boxes if you want to have the script make them required just put an "*" in front of the name.
<input type="text" name="*first_name" value="">
some thing like that. now you have a choice of where to put the email address that you want the script to send. you can do it like this
or in the script you will see a variable $to = "$recipient"
you can change the recipient to your email addy.
if you want the email that is sent to have a name you need to have another hidden field in the form like this
<input type="hidden" name="app" value="support">
of course you can change the value if you want.
in the script you will see "Automated Email Generated..."
you can change that to anything you like. that is in the email that is sent to you, or where ever the email is going.
that should be it, yo uwill notice that on the first line of the script is the shebang line, you may or may not need that. if you don't you can just delete it. if you do, you will need to get the line from the server.
let me know if you have any problems getting it to work
ya you can make a perl file that will work with your form. there is a program call perl builder and it makes the script for you and goes by your form.html
you can try that if you want. or see if they support .pl or .cgi scripts.
It may just be a moot point though. If he is on some type of free hosting service that has no mail services, no script/program/component is going to help him.
Also the only way to do what you want will require something serverside scripting. Agagin if your server doesnt support some type of mail sending there is nothing you can do.