is there any way to remove an attachment from Zend_Mail object? Simple
example:
$mail = new Zend_Mail();
//..configuring the email..
$mail->createAttachment($myImage,
'image/gif',
Zend_Mime::DISPOSITION_INLINE,
Zend_Mime::ENCODING_BASE64);
$mail->send();
now, I would like to modify the object and send it again
$mail->clearSubject()
->setSubject('new subject');
is there any posibility to remove the attachment from this object that
was set previously?
You can do it this way:
This will only remove parts where their MIME disposition is set to attachment.