[thelist] PHP mail with multiple recipients and form data notworking
Joel D Canfield
joel at spinhead.com
Wed Sep 17 20:49:55 CDT 2003
> $body .= "Comments: $comments\r\n" .... [/snip]
>
> Hey spin!
>
> Change the last line listed above ("Comments:")
>
> $body .= "Comments: $comments\r\n";
Okay, fixed that, and now all I get is my 'die' message, "'Could not
send mail'"
Stripped it down to this:
<?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");
?>
Still get 'Could not send mail'
Should this be working? It's on a Windows box with register_globals off,
which is why I'm including ini_set('SMTP', "mail.24caratdesign.com");
spinhead
More information about the thelist
mailing list