0

Hi all,

Ive just uploaded the zend framework to my server and need help setting the include path. I thought i had it set correctly, but its just not finding the classes.

heres what ive done

<?php
// global variables
ini_set("include_path", "/library");
?>

<?php 
require_once ('Zend/Mail/Mail.php');
?>
<?php
$mail = new Zend_Mail();
$mail->setBodyText('This is an example message body');
$mail->setFrom('chris@example.com', 'Chris Hope');
$mail->addTo('john@example.com', 'John Smith');
$mail->setSubject('This is an example subject');
$mail->send();
?>

regards

paul

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by sourcebits
0

The code below is tested and it works fine.

<?php
ini_set('include_path', 'library/');
include('library/Zend/Mail.php');
?>
<?php
$mail = new Zend_Mail();
$mail->setBodyText('This is an example message body');
$mail->setFrom('chris@example.com', 'Chris Hope');
$mail->addTo('prakash@sourcebits.com', 'Prakash');
$mail->setSubject('This is an example subject');
$mail->send();
?>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.