I want to send email using Zend Mail library. How I have to include it inorder to be able to use it? It says me to configure ini file however I'm using shared hosting.
Asked
Active
Viewed 3,384 times
2 Answers
1
You can do it via your PHP script using: ini_set
ini_set('include_path',ini_get('include_path').':../libraries/Zend');
Where ../libraries/Zend
is the path to your Zend Framework library.
-
What does ":" mean? Should it be under Zend folder? Will it be able to load Mail folder? – ilhan Apr 26 '11 at 22:16
-
The ':' is a separator between what is already on the include path `ini_get('include_path')` and what you are adding to it, which in this case is the path to your Zend Framework installation. Also, it will load everything under Zend, so you only want to put it to the top level of your library. – ashurexm Apr 26 '11 at 22:22
-
I have tried ':../Zend', ':/Zend', ':Zend', 'Zend'. Neither one worked. It says: Fatal error: Class 'Zend_Mail_Transport_Smtp' not found in /users/username/public_html/example.com/email.php on line 8 – ilhan Apr 26 '11 at 22:35
-
The Mail folder is under Zend folder. And email.php is next to Zend folder. – ilhan Apr 26 '11 at 22:37
1