Questions tagged [zend-mail]

Zend_Mail provides generalized functionality to compose and send both text and MIME-compliant multipart e-mail messages.

Zend framework has its own library that has many class to make application easy and sophisticated. Zend mail is a library that is used to send the mail. It has its class and methods that are used to send the mail.

Code on Github

Documentation

195 questions
2
votes
2 answers

Zend Mail - Where to instantiate it?

I'm using a Data Mapper / Gateway design pattern. So I have a: Mapper; Gateway; Domain Object (mainly with getters and setters); A controller; A view. My question is: where should I instantiate the Zend Mail ? I believe the view is obviously out of…
MEM
  • 30,529
  • 42
  • 121
  • 191
2
votes
1 answer

Problem with Gmail messages missing headers

I'm trying to programmatically parse my Gmail for various indexing functions, and am having trouble finding certain headers that I thought were standard email headers. I'm using the Zend IMAP library, and have no problems with authentication and…
tchaymore
  • 3,728
  • 13
  • 55
  • 86
2
votes
4 answers

Send mail without blocking 'execution'

I'm using Zend_Mail in a Zend Framework application to send an e-mail with the contents of a web-based contact form. The mailing itself works fine ( im using a Google Apps account ) but it can take fairly long to process ( ranging from a few seconds…
Billybob
  • 1,375
  • 1
  • 10
  • 7
2
votes
2 answers

Spam check before sending using Zend_Mail

I'm using Zend_Mail and the following code to send my email messages. $mail = new Zend_Mail('UTF-8'); $mail ->setBodyText($plainBody) ->setBodyHtml($htmlBody) ->setSubject($subject) ->setFrom(FROM_ADDR, FROM_NAME) ->addTo($email, $name…
Fabio Mora
  • 5,339
  • 2
  • 20
  • 30
2
votes
0 answers

How configurate the certificate of php 5.6 in SmtpTransport of ZEND 2?

Using phpMailer the config is that (it is working): $mail->SMTPOptions = array ( 'ssl' => array( 'verify_peer' => true, 'verify_depth' => 3, 'allow_self_signed' => true, 'peer_name' => 'smtp.rei.unicamp.br', …
2
votes
0 answers

ZF3 - Zend Mail Exception - Could not open socket

I have the class below. It works well stand-alone (without zend skeleton) but when I try to put it in a Controller of the zend skeleton I get an error. In same server it works well without zend MVC, whence do not seem ssl or tsl configuration. Seems…
2
votes
1 answer

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…
Bob Cavezza
  • 2,810
  • 7
  • 38
  • 56
2
votes
1 answer

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…
ashurexm
  • 6,209
  • 3
  • 45
  • 69
2
votes
1 answer

Zend Mail - Email is not sent

I have a problem sending a registration email via zend_mail. The mail is transmitted only to mails that have a @gmail.com. $email = "test@gmx.net"; $mail = new Zend_Mail (); $mail->setBodyText ( 'some text' ); $mail->setBodyHtml ( 'some text'…
DarkLeafyGreen
  • 69,338
  • 131
  • 383
  • 601
2
votes
1 answer

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…
Bob Cavezza
  • 2,810
  • 7
  • 38
  • 56
2
votes
1 answer

PHP and PowerMTA

I have installed a server mail in a dedicated server and I have PowerMTA installed also, our server has a main IP address and 50 additional ones,Multiple VMTA are configured. Now I need to send email with php through PowerMTA and be able to choose…
Chaanbi Kada
  • 371
  • 1
  • 3
  • 5
2
votes
0 answers

Zend sending email

i have a project that need to send email. and i use zend as my framework. i use XSL for email templat and save email parameter as array that will turn to XML before send the email. i create my own implementation multithread class utilize CURL for…
Jeg Bagus
  • 4,895
  • 9
  • 43
  • 54
2
votes
1 answer

mails through amtp using zend mail

Can someone please suggest me from where to download zend framework and the codes for sending mails using gmail smtp and zend in php?? please...
champ
  • 807
  • 2
  • 11
  • 23
2
votes
1 answer

Encoding Issue with Gmail SMTP and Zend\Mail\Message- Zend Framework 2

I need to write accented letters into email body, but the utf-8 encode doesn't work. Into Gmail setting I've selected the option "Use Unicode (UTF-8) for outgoing messages". I'm using Gmail SMTP and Zend\Mail\Messsage. I tried 4 different methods,…
2
votes
1 answer

Zend_Mail with Office 365 failing

We have switched from Comcast to Office 365 for sending email from our web application. I'm using Zend_Mail_Transport_Smtp from ZF v1.12. Upon switching from Comcast credentials to Office 365 credentials, I am now unable to send mail. Here is my…
scott80109
  • 361
  • 6
  • 25