Re: mail()

From: Date: Tue, 02 Apr 2002 16:01:27 +0000
Subject: Re: mail()
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-18129@lists.php.net to get a copy of this message
You do not show where $fromemail, $friendemail and $fromname are defined. Shouldn't $toaddress be the first item in your mail function? Try echoing these 3 variables to make sure it is what you think it should be. HTH MB James Kupernik <kupernik@bcn.net> said: > 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 > --

« previous php.db (#18129) next »