Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

82 users online



mail function

mail function

Currently viewing this thread: 1 (0 members and 1 guests)


vvuiverine

vvuiverine

Status: Offline!

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

Code:

mail("emailaddress@isp","subject","content","From: nobody@nowhere.net\r\n");

Perhaps the problem is because my ISP upgraded to a newer version of php .

Any ideas to get this script working again?

jamiem

jamiem

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

vvuiverine

vvuiverine

Status: Offline!

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)

silent_assasin

silent_assasin

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

ShaunTobias

ShaunTobias

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.

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0076 seconds.