Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

e-mail form

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
if anyone can help, i have a form on my page and i put in
<form action=&quot;mailto:tom356@hotmail.com&quot; method=&quot;post&quot; enctype=&quot;text/plain&quot;>
but it is not sending the e-mail form to me,

the page is and go to the contact page..

thank you
 
Worked for me. How are you accessing the page? Chandler
I ran over my dogma with karma!
 
I tried your code (with my e-mail address substituted) and it didn't work.

I believe you need some server-side scripts to do this. I use two perlscripts to send form info to my e-mail. The first script formats the text and sends it to the second script which directs the data to the proper mail server and e-mail account. The second script also indicates what fields will receive data.

These scripts came with my server software and are easy to customise.

Check the CGI bin on your server and see if there's a mailer script there.

If your site is hosted on a remote server, you will have to call someone.

Here's the code that calls the first perlscript:

<form action=&quot;/perl/mail/presendmail.pl&quot; method=POST name=&quot;&quot;><input type=hidden name=recipient value=&quot;yourname@blah.blah.com&quot;>

Hope this helps!
 
DeZiner, thanks for the link but how exactly does that script work?? I looked at the coding an it looks alot...how would I implement it to my site?? I have not failed; I merely found 100,000 different ways of not succeding...
 
Upload the file to your cgi-bin. Look at the comments on the file there is a readme.txt there somewhere. You edit 2 lines in the perl script itself. The rest is done by hidden form fields on your page.

1.)Download the file
2.)Upload to your cgi-bin
3.)Have your web host show you how to change the permissions. CHMOD to Read & Write for group and other. And read, write, execute for owner)
4.)Edit in the script the referal to match your website address
5.)implement in your form on your page hidden fields for recipient and a redirect page after the form is submitted. Here is the form in use, view the source.

This form uses a similar script called mailform or something that was pre loaded by the hosting company. Ask your host they may already have this loaded for you. DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top