Jump to content

How do I include zend?


phpJoeMo

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.