Forum Moderators: phranque

Message Too Old, No Replies

Email Forms with Apache

Don't have sendmail, btu I have a mail server

         

hondafox400

9:16 pm on Jan 23, 2004 (gmt 0)

10+ Year Member



Hey,

I've been running the "phpdev423" bundle for a while. It is basically Apache/MySQL/PHP 4.3 all bundled and configured together. I run Imail 6 as a mail server, and that works great. I installed ActivePerl 5.8. and it works fine as well but doesn't come with sendmail. My question is what can I do so I can have email forms on my site? Is there a mail handler CGI or PHP script I can point to to have the mail sent via SMTP or something? The server is running Windows XP Pro.

TIA

bakedjake

11:39 pm on Jan 23, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Imail comes with smtp32.exe.

decdim

2:32 am on Jan 24, 2004 (gmt 0)



Do you use CPanel? Later versions have cgiemail.

hondafox400

2:28 am on Jan 25, 2004 (gmt 0)

10+ Year Member



bakedjake - Yes, I have SMTP32.exe. Can I put a copy of it in my web folder, then just have the form action point to the smtp32.exe? How would I define what email to send from and to?

bakedjake

7:04 pm on Jan 26, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



No, you'll need to have a script that handles the form submission and then mails the results to you. smtp32.exe is sort of a replacement for sendmail's command line SMTP mode, but you'll still need a CGI to handle the form.

It's fairly brainless to do in perl, but there's already tons of scripts out there to do it. Just google for a form->email script.