Skip to end of metadata
Go to start of metadata

Zend Framework: Zend_Application_Resource_Smtp Component Proposal

Proposed Component Name Zend_Application_Resource_Smtp
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_Application_Resource_Smtp
Proposers Justin Hendrickson
Zend Liaison TBD
Revision 1.0 - 1 January 2008: Initial Draft. (wiki revision: 13)

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

UC-01

Basic sendmail setup

UC-02

SMTP with authentication over SSL and setting the transport as default

UC-03

Custom Emailtransport adapter

9. Class Skeletons

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

    This looks good but would it not be better in the namespace

    Zend_Application_Resource_Mail_Smtp or Zend_Application_Resource_Mail

    This way you could configure the other transports.

  2. Dec 24, 2009

    I made something similar in my personal library. You can find the class here http://www.codewithstyle.eu/2009/11/18/configurare-zend_mail-usando-application-ini/

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

    Bye.

  3. Jan 03, 2010

    Plans for this originate from November (or before), and were draft down Dec 1st: http://framework.zend.com/issues/browse/ZF-8436 . I implemented the Resource Plugin, among with other changes to Zend_Mail on Dec 15th, and committed those to trunk yesterday.

    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).

    1. Jan 04, 2010

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

      1. Jan 04, 2010

        It's probably called archives, but I guess graveyard is way better.