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('my@email.here', 'my name here'); $mail->addTo('somerecip@somedom.com', 'somerecip'); $mail->setSubject('TestSubject'); $mail->send($transport); ?> Any thoughts? Quote 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' Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.