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
6
votes
1 answer

Zend Mail 2.0 Attachments

Can anyone provide me with some example on how to add attachments to ZF2 Mail component? I did like: $message = new…
Alex Oleshkevich
  • 184
  • 2
  • 12
5
votes
1 answer

Adding an PDF attachment when using Zend_Mail

What is the right way to add an attachment when using Zend_Mail? I keep getting the following error when I try to open the attached pdf in the sent mail: "Cannot extract the embedded font 'BAAAAAA+ArialMT'. Some characters may not display or print…
Tudor Ravoiu
  • 2,130
  • 8
  • 35
  • 56
5
votes
3 answers

UTF-8 sender name in Zend_Mail?

I am using Zend_Mail and want to customize the sender name. I want the sender name to be FooBar爱你Ryan (where 'Ryan' gets replaced with the recipient name and 爱你 gets replaced with the translation for 'loves' in the language of the recipient, just…
Ryan
  • 22,332
  • 31
  • 176
  • 357
4
votes
2 answers

Minimizing Zend Framework to Zend_Mail?

Possible Duplicate: Use Zend Framework components without the actual framework? I just need the Zend_Mail functions of the Zend Framework, but the whole framework is about 300MB in size. Is there a way to cut it down to just the basics and…
Big-Blue
  • 429
  • 9
  • 22
4
votes
2 answers

Why doesn't this mail message decode correctly?

I have this code. It's from the Zend Reading Mail example. $message = $mail->getMessage(1); // output first text/plain part $foundPart = null; foreach (new RecursiveIteratorIterator($mail->getMessage(1)) as $part) { try { if…
Ólafur Waage
  • 68,817
  • 22
  • 142
  • 198
4
votes
1 answer

How to preview Zend_Mail's HTML code?

I'm creating a newsletter with dynamic content via Zend_Mail, however i want to validate the generated HTML code against W3C, is there a way to get the entire email code to be sent so I can grab it an validate? the getBodyHtml function is not…
Osvaldo Mercado
  • 960
  • 3
  • 13
  • 24
4
votes
1 answer

Send mail with Zend_Mail through Gmail smtp server

I'd like to use Gmail smtp server to send email with Zend_Mail. I had this code Zend_Mail::setDefaultTransport(new Zend_Mail_Transport_Smtp("smtp.googlemail.com", array( "auth" => "login", "username" => "myusername@gmail.com", "password"…
Egidio Caprino
  • 553
  • 10
  • 18
4
votes
5 answers

Magento : How to send contact form email with attachment in magento?

Is there any default functionality in Magento for a simple contact form that needs to send a file attachment? Or do I need to customise it with Zend's mail function? Any help or suggestions would be appreciated.
salik
  • 41
  • 1
  • 3
4
votes
1 answer

Zend Mailer error "From header set twice"

My question in based on Zend Mail I have a class that extends Zend Mail. Basically it is supposed to send two different mails to users upon registration. It has two functions sendRegistrationMail and sendActivationMail and both methods use the same…
snm
  • 65
  • 3
  • 10
4
votes
1 answer

zend mail giving mail in unreadable format when using in magento

Used the following code. $mail = new Zend_Mail(); $mail->setBodyHtml($message) ->setFrom('abc@gty.com', 'abc') ->addTo($to, 'admin') ->setSubject($subj); This is the part i wrote. I am getting proper html in $message. The $ variable used above are…
RoGeR_ThAt
  • 127
  • 2
  • 6
4
votes
4 answers

Creating HTML E-mails in Zend Framework 2 with Zend_Mail + Zend_Mime

Zend framework changed the Zend_Mail object so it no longer has the setBodyHtml() method to create HTML e-mails. Does anyone know how to create an HTML e-mail with the ZF2 Mail component? So far I have tried: $html = new…
user521990
  • 669
  • 1
  • 5
  • 21
4
votes
3 answers

when using Zend_mail my emails seem to be treated as spam, send through outlook and there not?

I'm trying to sort out an opt in mailing list system. I understand the basic principles and design required but i'm having an issue with it being picked up as spam. If i send a html email through outlook through email@domain.com it works fine and is…
Andrew
  • 9,967
  • 10
  • 64
  • 103
4
votes
1 answer

Send email with gmail in Zend framework

I am trying to send email with gmail account in Zend framework. This is what I got so far: $mailTransport = new Zend_Mail_Transport_Smtp('smtp.gmail.com', array( 'auth' => 'login', 'username' => 'myaddress@gmail.com', 'password' =>…
rockstar
  • 1,322
  • 1
  • 20
  • 37
4
votes
1 answer

Using Zend_Mail_Transport_Smtp with an MD5-Hashed value as password

I'd like to offer the users ob my web-application the possibility to send out emails using our smtp-server. The password for the user accounts are md5-hased and the smtp-server is hashing the received values to check for the right username-password…
tdog4224
  • 138
  • 2
  • 12
3
votes
1 answer

Multiple Zend_Mail configurations in application.ini

I'm am using Zend Framework. I need to put multiple mail configurations in application.ini for Zend_Mail (using Zend_Application_Resource_Mail). Is it possible to do this using the standard classes in Zend Framework or do I need to create my own…
webs86
  • 199
  • 1
  • 10
1
2
3
12 13