LiteCart's SMTP Client

The SMTP client in LiteCart is a microtiny wrapper for sending emails and communicating with SMTP servers. To configure your SMTP client see Admin -> Settings -> Email.

The last SMTP communication log is stored in logs/smtp_last.log.

try {

    $smtp = new wrap_smtp($hostname, $port, $username, $password);

    $smtp->connect();

    $result = $smtp->send($sender_email, $recipients, $email_data);

} catch (Exception $e) {
    trigger_error('Failed sending email: '. $e->getMessage(), E_USER_WARNING);
}

See Also

Revisions

Recently Edited Articles