2

i just want to use MAIL class of ZEND FRAMEWORK

What file i have to include in my script?

thank you

Leonardo
  • 2,273
  • 6
  • 29
  • 32

1 Answers1

7
include '/path/to/Zend/lib/Zend/Mail.php'
$zendMail = new Zend_Mail();
Mads Mogenshøj
  • 2,063
  • 1
  • 16
  • 23
  • 1
    Might need some other ones too ;) But it's best practice to set include path to Zend's library folder. Then the files are included automatically ;) – Tomáš Fejfar Jan 09 '11 at 15:47
  • I recently asked similar question @ http://stackoverflow.com/questions/4314960/ - but you should keep the whole **Zend** library directory and include mail class, you also should add library path to __include_path__ as Tomas mentioned. – Hossain Khan Jan 30 '11 at 15:32