Re: Mail sending from nobody to nobody...

From: Date: Mon, 05 Apr 2004 08:27:51 +0000
Subject: Re: Mail sending from nobody to nobody...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-182335@lists.php.net to get a copy of this message
Try getting rid of the stripslashes, or if you need to remove them, add an additional "\n" to the message after the strip slashes, like so: if(mail("ml@testdomain.com","Added To Mailing List",stripslashes($message)."\n",$from) == false) die('failed'); Also, see http://www.php.net/manual/en/function.mail.php if you haven't checked there yet. There are some good examples. At 12:17 AM 4/5/2004, Jonathan Villa wrote:
$from = "From: ".$email."\n"; $from .= "Reply-to: ".$email."\n"; $message = "The following person has been added to the Mailing List.\n\n"; $message .= $name." (".$email.") from ".$city." has been added to the mailing list."; if(mail("ml@testdomain.com","Added To Mailing List",stripslashes($message),$from) == false) die('failed'); On Mon, 2004-04-05 at 02:13, hitek wrote: Details? How are you calling the mail function? At 11:59 PM 4/4/2004, Jonathan Villa wrote:
For some reason mail is being sent from nobody to nobody every time. I have tried hardcoding the sendmail path, which is the default anyway, and it still doesn't work? Has anyone encountered this before? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#182335) next »