I recently helped a friend write a script
in PHP using the mail() function.
He needed a script to present a form of
several questions, compile them into a
mail message, and send the message to the
owner's email address.
We used the mail() function, and it worked
fine from my laptop running OpenBSD 3.1
using apache and php4...
The hosting company his boss decided to use
has PHP3 installed as a CGI module (instead
of an Apache module.) They also apparently
do not have sendmail (or any other mail server)
configured in their php.ini file (and refuse
to set one up.) When he called them (after
the script failed to send mail to the test
address,) they told him he would have to send
the mail to an SMTP server. (I told him the
mail() function relies on the SMTP server
being listed in the php.ini file.)
Does anyone have any suggestions for a work
around? I'd prefer not to have to open
a raw socket to talk to the customer's
mail server, but if that is the only resort,
I will. Thanks for any help.
Respectfully,
Stefan