[fw-general] Re: Send mail with multiple Cc

2011-05-31 Thread David Muir
Error means that php's mail() function failed.

You need to set up PHP to use an MTA to use the Sendmail transport.
Check your php.ini to see if it's set up, particularly sendmail_path. Should
be something like:
sendmail_path = /usr/sbin/sendmail -t -i

Cheers,
David

--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Send-mail-with-multiple-Cc-tp3556120p3560691.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com




[fw-general] Re: Send mail with multiple Cc

2011-05-31 Thread David Muir

whisher wrote:
> 
> Hi,is there a way to send an email with
> multiple Cc.
> With this snippet:
> $body = 'Hi all,Alan';
> $mail = new Zend_Mail();
> $mail->setFrom('x...@x.com', 'Alan');
> $mail->addTo('xxx...@gmail.com', 'Alan');
> $mail->addCc('x...@.com', 'Someone Else');
> $mail->addCc('xx...@.com', 'Another Recipient');
> 
> $mail->setSubject('Basketball practice this week');
> $mail->setBodyText($body);
> 
> $mail->send();
> 
> 
> I got a Fatal error.
> 
> Bye.
> 
> Ps
> I also tried passing an array but it doesn't work.
> 

Kind of pointless to ask how to fix an error without letting us know what
the error is, isn't it?

Cheers,
David

--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Send-mail-with-multiple-Cc-tp3556120p3559943.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com




Re: [fw-general] Zend Auth: clearIdentity not working for simultaneous requests

2011-05-31 Thread Fernando Marcelo
Hi,

Sorry for the delay to reply. Thank you for the answer.

I think this was happening because the session.save_handler was set to 
memcache, instead of files.

In any case, the clear session solution fixed the problem.

Regards,

Fernando Morgenstern
cont...@fernandomarcelo.com




Em 24/05/2011, às 15:29, Marco Pivetta escreveu:

> This happens because you're using the session storage, which writes at the 
> end of the request. You can enforce a logout by doing something like:
> 
> Zend_Auth::getInstance()->clearIdentity();
> Zend_Session::close();
> 
> That should do the job and commit the logout to the session.
> Otherwise, you'll have to implement your own auth storage.
> 
> Marco Pivetta
> @Ocramius
> http://marco-pivetta.com
> 
> 
> 
> On 23 May 2011 20:15, Fernando Marcelo  wrote:
> Hi,
> 
> I am having some issues with Zend_Auth. I have an application that sends Ajax 
> requests every X seconds to server. Depending on what happened, this request 
> can take a few seconds to be processed.
> 
> What i realize is that clearIdentity doesn't work if there is another request 
> for the same user.
> 
> To test this what i did was to prepare two actions:
> 
> 1) Logout action: a simple call for clearIdentity()
> 2) Process action: an action that have a very long sleep() call
> 
> If i call only logout action, it works ok.
> 
> But if i can logout action at the same time that the process action is being 
> ran, them logout simply doesn't work. I can call hasIdentity() right away and 
> it will return true.
> 
> I was wondering if someone else had this problem and if there is a good 
> solution?
> 
> Regards,
> 
> Fernando Morgenstern
> cont...@fernandomarcelo.com
> 
> 
> 
> 
> 
> --
> List: fw-general@lists.zend.com
> Info: http://framework.zend.com/archives
> Unsubscribe: fw-general-unsubscr...@lists.zend.com
> 
> 
> 



[fw-general] Re: Send mail with multiple Cc

2011-05-31 Thread whisher
Thanks for the point but I'm getting the same error.


David Muir wrote:
> 
> Error means that php's mail() function failed.
> 
> You need to set up PHP to use an MTA to use the Sendmail transport.
> Check your php.ini to see if it's set up, particularly sendmail_path.
> Should be something like:
> sendmail_path = /usr/sbin/sendmail -t -i
> 
> Cheers,
> David
> 


--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Send-mail-with-multiple-Cc-tp3556120p3562733.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com