You know that $fromaddress must have the correct header's to, right? Like just "[EMAIL PROTECTED]" will not be interepreted but something like "Reply-to:[EMAIL PROTECTED]" will set the Reply-to header correctly. Also, did you try taking out the dynamic values and just entering a hardcoded test without the variables to make sure it works just even with straight static values?
Adam Voigt [EMAIL PROTECTED] On Tue, 2 Apr 2002 10:55:20 -0500, James Kupernik <[EMAIL PROTECTED]> wrote: > I'm trying to run a mail function .. the program is running, but I'm not > getting the email. Here is the code .. any one have any ideas? > > $toaddress = $friendemail; > > $subject = "A message from ".$fromname."."; > > $mailcontent = "Here's a special message from a friend" > ."Your friend, ".$fromname." at ".$fromemail." writes:\n\n" > ."".$message.""; > > $fromaddress = $fromemail; > > mail($fromemail, $subject, $mailcontent, $fromaddress); > > I talked with my ISP and the sendmail_path is set up correctly.... > > I know it's not DB related, but I didn't know where else to turn. Thanks for > any help you can provide. > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php