Path

ez components / documentation / api reference / 2009.1rc1 / mail


eZ Components 2009.1rc1

Mail: ezcMailMtaTransport

[ Tutorial ] [ Display example ] [ Mail listing example ] [ Rfcs ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcMailMtaTransport

Implementation of the mail transport interface using the system MTA. [source]

Implemented Interfaces

The system MTA translates to sendmail on most Linux distributions.
Qmail insists it should only have "\n" linebreaks and will send garbled messages with the default "\r\n" setting. Use ezcMailTools::setLineBreak( "\n" ) before sending mail to fix this issue.

Method Summary

public ezcMailMtaTransport __construct( )
Constructs a new ezcMailMtaTransport.
public void send( $mail )
Sends the mail $mail using the PHP mail method.

Methods

__construct

ezcMailMtaTransport __construct( )
Constructs a new ezcMailMtaTransport.

send

void send( ezcMail $mail )
Sends the mail $mail using the PHP mail method.
Note that a message may not arrive at the destination even though it was accepted for delivery.

Parameters

Name Type Description
$mail ezcMail  

Throws

ClassDescription
ezcMailTransportException if the mail was not accepted for delivery by the MTA.

Last updated: Mon, 22 Jun 2009