Re: [fw-general] Fluent interfaces for Zend_Mail

2006-11-18 Thread Nico Edtinger
(to set the filename, content type, etc.). -Matt - Original Message - From: "Nico Edtinger" <[EMAIL PROTECTED]> To: "Waldemar Schott" <[EMAIL PROTECTED]> Cc: "ZF-General" Sent: Saturday, November 18, 2006 10:09 AM Subject: Re: [fw-general]

Re: [fw-general] Fluent interfaces for Zend_Mail

2006-11-18 Thread Matthew Ratzloff
CTED]> To: "Waldemar Schott" <[EMAIL PROTECTED]> Cc: "ZF-General" Sent: Saturday, November 18, 2006 10:09 AM Subject: Re: [fw-general] Fluent interfaces for Zend_Mail In general this shouldn't be a problem. But setBodyText() and setBodyHtml() both return the Zend_

Re: [fw-general] Fluent interfaces for Zend_Mail

2006-11-18 Thread Nico Edtinger
In general this shouldn't be a problem. But setBodyText() and setBodyHtml() both return the Zend_Mime_Part instance. If someone needs this he could of course also use getBodyText() and getBodyHtml(). Does someone use the return value of these two set methods? Otherwise I'll checkin Zend_Mai

[fw-general] Fluent interfaces for Zend_Mail

2006-11-18 Thread Waldemar Schott
Hello, I think it would be nice if Zend_Mail supports fluent interfaces like other parts of the framework. Current usage: http://framework.zend.com/manual/en/zend.mail.html |$mail = new Zend_Mail(); $mail->setBodyText('This is the text of the mail.') ->setFrom('[EMAIL PROTECTED]', 'Some Se