Instructions to use Zend Framework

At ServerGrove we know the power of frameworks, so we have pre-installed Zend Framework for your convenience.

We have installed Zend Framework in all our servers, so to use it in your site within ServerGrove’s servers, follow this example:

“`
/** Start code **/
require_once ‘Zend/Mail.php’;
$mail = new Zend_Mail();
$mail->setBodyText(‘This is the text of the mail.’);
$mail->setFrom(‘user@domain.com’, ‘Sender’);
$mail->addTo(‘youremail@domain.com’, ‘Recipient Name’);
$mail->setSubject(‘Test ZendFramework’);
$mail->send();

print “email sent”;
/** End code **/
“`

Please make sure that PHP Safe mode is disabled. To turn off safe mode, login to the control panel and under the Setup section of the domain, uncheck the option for safe mode.

If you are not sure, contact us.