[thelist] A New Query regarding PHP mail with multiple recipients andform data notworking

Joshua Olson joshua at waetech.com
Fri Sep 19 09:16:07 CDT 2003


----- Original Message ----- 
From: "Joel D Canfield" <joel at spinhead.com>
Sent: Friday, September 19, 2003 10:08 AM


> <?php
> ini_set('SMTP', "mail.24caratdesign.com");
> $email = "joel at spinhead.com";
> $subject = "Contact Request ($today)";
> $body = "This is the body\r\n";
> $headers = "From: webmaster at 24caratdesign.com\n";
> $headers .= "Reply-to: webmaster at 24caratdesign.com\n";
> $headers .= "Content-Type: text/plain; charset=iso-8859-1\n";
> mail ($email, $subject, $body, $headers) or die("Could not send mail");
> ?>

> All I get is my error message 'Could not send mail'

Joel,

Here's where I'd start:

1.  Make sure that you can get to port 25 from the machine running PHP to
the webserver.
2.  Make sure that you do not need to authenticate the smtp session.
3.  Make sure you don't need to pop before smtp'ing.
4.  Check that relaying is otherwise allowed from your ip.
5.  Make sure the webmaster account does indeed exist.

HTH,

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com
706.210.0168





More information about the thelist mailing list