Heylo! I'm a n00b to PHP, as posting in this forum implies. I have mastered the oh-so-difficult switch from SSI includes to PHP includes. But now my work demands something a little more challenging for me.
We recently lost out IT guru and I'm having to fill his rather large shoes. So my first PHP project seems a little daunting: form mail. (I've modified already-working formmails before--they were not PHP--but I've never created one myself from scratch.)
So here's the setup:
The form is on a local IntraNet. (Unfortunately this means I can't link you to it.)
The local IntraNet is hosted on a Windows2000 NT Server.
The mail server is hosted on another machine, on UNIX. (In case it matters, it also has PHP installed).
To start with, I'm cool with plaintext mails, so I've attempted to implement the built-in mail() function.
I've tested parts of the process, and it appears that the POST method is sending the form data to the PHP form that processes it. This was convenient and easy, since all I have to do is assign a variable for each form piece. So the data transfer is okay.
But when trying to send, I get the following error:
Warning: mail() [function.mail]: Failed to connect to mailserver at "health.umd.edu" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in f:\Inetpub\wwwroot\new\docs\submittest.php on line 36
health.umd.edu is the mail server. (It's UNIX, and the IntraNet website is Win2000 NT Server. Both have PHP installed.) It is specified for the SMTP variable in php.ini. The default port, 25, is what my mail client uses in Mozilla Thunderbird to retrieve mail from this server, so I would have thought that is correct. But I still get the above error, and I'm baffled. This is the first time I'm having to deal with servers, PHP, and networks and ports and such, so I've got a lot on my plate at once and I'd be very very grateful for any and all advice offerred.