Re: Re: Mail Queue problem - when sending to multiple email addresses, headers only use first address

From: Date: Tue, 25 Jan 2011 15:56:44 +0000
Subject: Re: Re: Mail Queue problem - when sending to multiple email addresses, headers only use first address
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-30939@lists.php.net to get a copy of this message
On Tue, Jan 25, 2011 at 7:42 AM, Richard Lund <rlund1@lunds.us> wrote: > Never mind, I tried the IRC channel again and found the answer: > > $hdrs = $mime->headers($hdrs); > > should be > > $hdrs = $mime->headers($hdrs, true); > > The second parameter is overwrite - it would not overwrite the header when > submitting a new one. > > Problem solved - hopefully this will help someone else along the way. > > May I suggest putting this into the mail queue tutorial? > I spent 4 days on this issue... > > Thanks! Hi Richard, It's in the Mail_Mime docs: http://pear.php.net/manual/en/package.mail.mail-mime.headers.php. It might be a good idea to add a link to the Mail_Mime docs. Best Regards, --Matthew

« previous php.pear.general (#30939) next »