
November 26th, 2004
06:38 AM
mail function
A while back I made a mail script using the mail() function and all worked well.
However now I can't get php to send any mail from a web-based form. The script below simply will not work
Perhaps the problem is because my ISP upgraded to a newer version of php .
Any ideas to get this script working again?

November 26th, 2004
06:52 AM
Flying by the Seat of my Pants.
Status: Offline!
I cant see a problem with your PHP code.
Have you tried it without the '\r\n' at the end, i know this shouldnt make a difference...
This is the link to the PHP mail functiop, it says its been the same from PHP3 -> PHP5
http://uk2.php.net/manual/en/function.mail.php
___________________
J

November 26th, 2004
07:47 AM
I have tried without the \r\n. I've done just about everything I can think of but just can't get it to work.
Are there any other ways of sending form-based mail in php?
I ran the form-mail file with the php -f command and these are the error messages I got:
/etc/mail/submit.cf: line 421: readcf: option RunAsUser: unknown user smmsp
/etc/mail/submit.cf: line 440: readcf: option TrustedUser: unknown user smmsp
can not write to queue directory /var/spool/clientmqueue/ (RunAsGid=0, required=51): Permission denied
Last edited by vvuiverine, November 26th, 2004 08:21 AM (Edited 1 times)

November 26th, 2004
01:12 PM
Neverside Newbie
Status: Offline!
is it possible your host doesnt allow sending of email? you wmay want to ask them about that.
___________________
currently designing:
http://jscphp.no-ip.org

November 26th, 2004
01:19 PM
Neversidian
Status: Offline!
the mail function is possible the easiest function! If that doesn't work, it's definately not your code but your hosts havnt setup the mail settings in the php.ini file
___________________
STphp - Modern Web Solutions - CLOSED
ShaunTobias.co.uk - Blog and Portfolio - CLOSED
Look out for LookCreative.co.uk in September.