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('my@email.here', 'my name here');
$mail->addTo('somerecip@somedom.com', 'somerecip');
$mail->setSubject('TestSubject');
$mail->send($transport);
?>

 

Any thoughts?

Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.