<?php
/**
 * The interface for email transports.
 */
interface email_transport
{
    ////////////////////////////////////////////////////////////////////////////
    // Overload functions.

    ////////////////////////////////////////////////////////////////////////////
    // Interface functions.
    
    /**
     * Sends an email.
     * 
     * @param email $email The email.
     * @param array (optional) $failed The failed recipients.
     */
    public function send(email $email, &$failed = array());
}
