    MAIL -> boolean send ( [ mixed type ] )

    Return TRUE if has been successfully sent, FALSE if not.

    mixed type default value is string "local".

    mixed type possible values are:
     resource connection ( relay )
     string local ( use mail() php function )
     string client ( connect to MX zone )
     string sendmail ( use "SendMail" generic Unix program )
     string qmail ( use "QMail" generic Unix program )

    Notice, you can redefine the execution path and name for "SendMail" or "QMail" program.
    Default path names are: "/usr/sbin/sendmail" for "SendMail" and "/var/qmail/bin/sendmail" for "QMail".

    Example:

    $m = new MAIL;

    // send mail using "mail()" php function
    $m->Send();

    // send mail directly to MX host
    $m->Send('client');

    // optional, you can redefine the execution path and name for "SendMail" or "QMail" program
    // $m->SendMail = '/new-path/sendmail';
    // send mail using "SendMail" generic Unix program
    $m->Send('sendmail');

    // connect to SMTP server
    $c = $m->Connect('smtp.hostname.tld');
    // send mail relay using '$c' resource connection
    $m->Send($c);

    See Also: MAIL->Connect(), MAIL->Context()

    [ Comments ]

    Last update: Sunday, June 17, 2007