Zend_Mail kullanmadan göndermeden önce Spam onay

0 Cevap php

Benim e-posta iletileri göndermek için Zend_Mail kullanarak ve aşağıdaki kod ediyorum.

$mail = new Zend_Mail('UTF-8');
$mail ->setBodyText($plainBody)
   ->setBodyHtml($htmlBody)
   ->setSubject($subject)
   ->setFrom(FROM_ADDR, FROM_NAME)
   ->addTo($email, $name )
   ->addHeader(MY_HEADER, serialize( array( 'foo' => 'bar' ) ) )
;

Ben hazırlanan mesaj için spam rating kontrol etmek ve ben SpamAssassin'e kullanarak yapmak istiyorum gerekir.

I thought to create a file with the contents and running something such as exec('spamc $filename'), but how to get the file content with the full MIME body? I noticed that there's a _buildBody() function in Zend_Mail_Abstract class (library/Zend/Mail/Transport/Abstract.php) that's return that, but that's a protected function.

Teşekkürler

0 Cevap