public static function create($gateway = null)
    {
        $email_gateway_manager = new EmailGatewayManager;

        if ($gateway) {
            return $email_gateway_manager->create($gateway);
        } else {
            return $email_gateway_manager->create($email_gateway_manager->getDefaultGateway());
        }
    }
public static function create($gateway = null)
    {
        $email_gateway_manager = new EmailGatewayManager;

        if ($gateway) {
            return $email_gateway_manager->create($gateway);
        } else {
            return $email_gateway_manager->create($email_gateway_manager->getDefaultGateway());
        }
    }
public static function create ( $ gateway = null ) { $ email_gateway_manager = new EmailGatewayManager ; if ( $ gateway ) { return $ email_gateway_manager -> create ( $ gateway ) ; } else { return $ email_gateway_manager -> create ( $ email_gateway_manager -> getDefaultGateway ( ) ) ; } }
Returns the EmailGateway to send emails with.
Calling this function multiple times will return unique objects.

@param string $gateway
The name of the gateway to use. Please only supply if specific
gateway functions are being used.
If the gateway is not found, it will throw an EmailException
@throws Exception
@return EmailGateway
Returns the EmailGateway to send emails with . Calling this function multiple times will return unique objects .