zend-mail

Getting "Could not read" while trying to connect to 127.0.0.1 in Zend_Mail_Smtp_Transport

I app is a PHP app using Zend Framework to send emails. I am trying to connect to a postfix on my local system and getting this exception in 10-12% of times when I try to send an email. Not able to obtain the cause of not being able to connect to local host. Can someone please give me some pointers or a headstart in getting to the prob...

Zend_Mail and Google Apps strange behavior

Seems that you can't modify the "From" header...always map to [email protected] or [email protected]. Also, keeps adding a CC header to the sender. Is this normal? ...

Zend_Mail sent email is treated as SPAM

Please tell me what I am doing wrong. I am sending an email using the Zend_Mail class like this: $message = <<<STR You have a new invoice! Sign in to your clientarea to see it. Best regards, Company name STR; $mail = new Zend_Mail(); $mail->setBodyText($message); $mail->setFrom('[email protected]', 'Company.com'); $mail->addTo('cl...

Zend_Mail - how to get only html body from email?

I'm working with emails from google oauth. This is the format I'm using. $emailmessage = $storage->getMessage($i); $fromaddress = $storage->getMessage($i)->from; What format can I use to get only the html body of the email? I've been looking at this document http://framework.zend.com/apidoc/core/Zend_Mail/Zend_Mail.html, but the ...

gmail smtp problem

I am using gmail smtp to send emails from my website, but i noticed that some emails are dropped. I use Zend_Mail. Everything works as it supposed to for most of the emails, but if an email's subject/body is somewhat questionable, then it might not be sent. For example: If I try to send emails like this: Subject (asdjkasdf kasdjf kdfas...

Zend Mail - how to read without emails being marked as opened

I'm using zend mail extended with zend_mail_storage_imap and I built an application that looks for keywords in user's emails. The problem is that it opens up each email and keeps it marked as read. Is there a way to check the body of emails and not mark each mail checked as read? Here's current working code. It's part of an ajax qu...

What's the most efficient way to sort through emails with zend_mail?

I'm sorting through emails looking for specific instances of strings and it is taking too long. I would like to get the time down to half a second per email, and it's currently taking about 2-2.5 seconds per email. I'm worried I'm doing something really dumb that's slowing this down - probably with mysql or zend_email. What this cod...

Zend Mail - Email is not sent

Hi, I have a problem sending a registration email via zend_mail. The mail is transmitted only to mails that have a @gmail.com. $email = "[email protected]"; $mail = new Zend_Mail (); $mail->setBodyText ( 'some text' ); $mail->setBodyHtml ( 'some text' ); $mail->setFrom ( '[email protected]', 'GeldOnkel.net' ); $mail->addTo ( $email, $em...

Problem with sending multiple mails per SMTP connection with Zend_Mail and Exim

I have exim mailserver on my dedication server. I'm trying to send about 800 mails at once with zend_mail But only about 200 of them sending I have no php errors in error_log I tried to log if it too slow and exceed max time execution 2010-10-12 15:16:32 - Going to send 795 letters 2010-10-12 15:16:37 - 100 letters done 2010-10-12 15:16...

Send SMTP Email through Exchange Server Using Zend_Mail - How to Diagnose these Errors

I have the following code: $config = array( 'auth' => 'login', 'username' => 'domain\user', 'password' => 'password', 'ssl' => 'tls', 'port' => 25, ); $tr = new Zend_Mail_Transport_Smtp('192.168.101.11',$config); Zend_Mail::setDefaultTransport($tr); $mail = new Zend_Mail(); $mail->setBodyText($text); $mail->setFrom('nor...

How do I move an email to a different folder using zend_mail and zend_mail_storage_imap?

I'm using these libraries for an email application I'm building. $storage = new Zend_Mail_Storage_Imap($imap); if (strpos($storage->getMessage($i),'chocolate') !== FALSE ) { //Move to chocolate folder here } Also, is there a way to put incoming emails from this sender to automatically go into the chocolate folder from now...