Jump to content
Larry Ullman's Book Forums

Zend Mail


Recommended Posts

Hi Larry,

I have a few questions for you regarding the zend mail installation.

1) Are there any step by step instructions on how to install the correct zend framework version that you use in the first edition of your book

2) Could you tell me what version of the zend framework you used in the first edition of the book.

3) Could you provide the link to the version you used in the first edition of the book so I can copy the correct files.

4) I downloaded the composer file and the zend framework 3, but the files don't seem to correspond to the code in the email_receipt.php page.

That's why I think I have a different zend framework version from the one you downloaded.

5) I can't seem to find the location for:

include ('Zend/Mail.php');

in zend framework 3

 

6) When you create the following line:

$mail = new Zend_Mail();

what class are you referring to regarding the object creation, and where can it be located please.

 

Thanks

Link to comment
Share on other sites

The first edition is 9+ years old right now, so I'm not sure you should use that version of Zend, even if it's still available. It looks like Zend Mail is now installed via Composer: https://docs.zendframework.com/zend-mail/

Code examples for the current version of Zend Framework can be found here: https://docs.zendframework.com/zend-mail/message/intro/ 

Let me know if you need more help updating the book's example for the current version of ZF. 

Link to comment
Share on other sites

Hi Larry,

 

I've managed to sort the problem out now!

 

It was really tricky because the files you used are years old, and I was using the current zend framework files, which didn't correspond to the code in your book. That's why I was having problems.

 

I've reached the final.php page now.

 

regards

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...