Skip to end of metadata
Go to start of metadata

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

Zend Framework: Zend_Application_Resource_Smtp Component Proposal

Proposed Component Name Zend_Application_Resource_Smtp
Developer Notes
Proposers Justin Hendrickson
Zend Liaison TBD
Revision 1.0 - 1 January 2008: Initial Draft. (wiki revision: 14)

Table of Contents

1. Overview

Zend_Application_Resource_Emailtransport is a resource class for creating concrete Zend_Mail_Transport_Abstract instances.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • This component will include a factory resource that delegates creating the email transport to a concrete resource implementation.
  • This component will include concrete implementations for existing transports.

4. Dependencies on Other Framework Components

  • Zend_Application_Resource_ResourceAbstract
  • Zend_Mail
  • Zend_Mail_Transport_Sendmail
  • Zend_Mail_Transport_Smtp

5. Theory of Operation

The component will implement the ResourceAbstract interface. It will allow setting of the adapter to be used and arbitrary options that will be passed onto a concrete email transport resource on initialization.

6. Milestones / Tasks

  • Milestone 1: design notes will be published here
  • Milestone 2: Working prototype checked into the incubator supporting use case #1
  • Milestone 4: Unit tests exist, work, and are checked into SVN.
  • Milestone 5: Initial documentation exists.

7. Class Index

  • Zend_Application_Resource_Emailtransport
  • Zend_Application_Resource_Emailtransport_Sendmail
  • Zend_Application_Resource_Emailtransport_Smtp

8. Use Cases


Basic sendmail setup


SMTP with authentication over SSL and setting the transport as default


Custom Emailtransport adapter

9. Class Skeletons



Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Dec 24, 2009

    <p>This looks good but would it not be better in the namespace</p>

    <p>Zend_Application_Resource_Mail_Smtp or Zend_Application_Resource_Mail</p>

    <p>This way you could configure the other transports.</p>

  2. Dec 24, 2009

    <p>I made something similar in my personal library. You can find the class here <a class="external-link" href=""></a></p>

    <p>The post is in Italian, but the code is commented in English, it should be pretty clear.</p>


  3. Jan 03, 2010

    <p>Plans for this originate from November (or before), and were draft down Dec 1st: <a class="external-link" href=""></a> . I implemented the Resource Plugin, among with other changes to Zend_Mail on Dec 15th, and committed those to trunk yesterday.</p>

    <p>Having said that, I think this proposal is no more useful (I would have notified you earlier if I'd seen an announcement of this proposal).</p>

    1. Jan 04, 2010

      <p>Fair enough. I'll move this to the graveyard (or whatever it's called).</p>

      1. Jan 04, 2010

        <p>It's probably called archives, but I guess graveyard is way better<ac:emoticon ac:name="warning" />.</p>