| core_net

# example
    1     <?php
    2     require_once($_SERVER['DOCUMENT_ROOT'] . '../global.conf.php');
    3     require_once($APP['path']['core'] . 'net/email/Bs_Smtp.class.php');
    4
    5     $mail =& new Bs_Smtp();
    6     $mail->host = 'mail.digitalsolutions.ch';
    7     $mail->addFrom('foo@blueshoes.org', 'foo');
    8     $mail->addTo('andrej@blueshoes.org', 'andrej');
    9     $mail->subject = 'test mail from core/net/email/examples/smtp.php';
    10    $mail->message = 'foo';
    11    $status = $mail->send();
    12    if ($status[0] === 'all') {
    13        echo '<font color="green"><b>Thank you for your message.</b></font><br><br>';
    14    } else {
    15        echo '<font color="red"><b>Sending message failed.</b></font><br><br>';
    16        if (isEx($status)) $status->stackDump('echo');
    17    }
    18    ?>
Documentation generated on Mon, 29 Dec 2003 21:12:44 +0100 by phpDocumentor 1.2.3