phpJoeMo Posted May 19, 2011 Share Posted May 19, 2011 Hi all, I'm getting started with zend and I would like to begin by sending a simple stmp authenticated email. I've search the documentation, only I can't seem to find which file to include when I want to use the framework. Here is my sample code: <?php $config = array('auth' => 'login', 'username' => 'myUserNameGoesHere', 'password' => 'myPasswordGoesHere'); $transport = new Zend_Mail_Protocol_Smtp('smtpout.secureserver.net', 80, $config); $mail = new Zend_Mail(); $mail->setBodyText('This is the text of the mail.'); $mail->setFrom('[email protected]', 'my name here'); $mail->addTo('[email protected]', 'somerecip'); $mail->setSubject('TestSubject'); $mail->send($transport); ?> Any thoughts? Link to comment https://forums.phpfreaks.com/topic/236897-how-do-i-include-zend/ Share on other sites More sharing options...
phpJoeMo Posted May 19, 2011 Author Share Posted May 19, 2011 OK, so I learned how to read the classes. Basically the seperated words in the class definitions are file path with file name at the end of class name. IE: class 'Zend_Mail_Transport_Smtp' path to file 'Zend/Mail/Transport/Smtp.php' Link to comment https://forums.phpfreaks.com/topic/236897-how-do-i-include-zend/#findComment-1217792 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.