Re: PEAR::MAIL Problem

From: Date: Tue, 24 Feb 2004 17:07:49 +0000
Subject: Re: PEAR::MAIL Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178732@lists.php.net to get a copy of this message
Stanley chan wrote: > Dear Listmates, > > I am using PEAR::MAIL and my code includes the below; > > // Send Email Out > $mailCfg = array( > "host" => "127.0.0.1", > "port" => "25", > "auth" => false > ); > $mailRecipient = $hashValue["emailaddress"]; > $mailHeader = array( > "From" => "info@sm.hk", > "To" => $mailRecipient, > "Subject" => "Test Message" > ); > $mailBody = $myContent; > $mailMgr =& Mail::factory("smtp", $mailCfg); > $mailResult = $mailMgr->send($mailRecipient, > $mailHeader, $mailBody); > > It is found that the variable $mailResult is always > true but the email cannot be received whenever. > > On the other hand, in the same machine, I can use the > native function mail() very well. It works well. > > So I doubt the problem of PEAR::MAIL. Should I > consider anything? > > My server is using Qmail and sendmail command is a > shortcut of Qmail executes (standard way). > > Please help. > > -stan > > > _________________________________________________________ > 必殺技、飲歌、小星星... > 浪漫鈴聲 情心連繫 > http://us.rd.yahoo.com/evt=22281/*http://ringtone.yahoo.com.hk/ I would suggest using the sendmail or mail backends to PEAR::Mail instead of smtp since those seem to work fine on your machine. $mailMgr = Mail::factory('mail'); -- paperCrane <Justin Patrin>

« previous php.general (#178732) next »