| Current Path : /var/www/cesa.co.za/Mailer/XPertMailer-v1.4.4/examples/ |
| Current File : /var/www/cesa.co.za/Mailer/XPertMailer-v1.4.4/examples/example1.php |
<?php
/***************************************************************************************
* *
* This file is part of the XPertMailer package (http://xpertmailer.sourceforge.net/) *
* *
* XPertMailer is free software; you can redistribute it and/or modify it under the *
* terms of the GNU General Public License as published by the Free Software *
* Foundation; either version 2 of the License, or (at your option) any later version. *
* *
* XPertMailer is distributed in the hope that it will be useful, but WITHOUT ANY *
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A *
* PARTICULAR PURPOSE. See the GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License along with *
* XPertMailer; if not, write to the Free Software Foundation, Inc., 51 Franklin St, *
* Fifth Floor, Boston, MA 02110-1301 USA *
* *
* XPertMailer php functions class. Sends e-mail message in MIME type format. *
* Copyright (C) 2006 Tanase Laurentiu Iulian *
* *
***************************************************************************************/
set_time_limit(0);
error_reporting(E_ALL); // optional for debugging
// path to XPertMailer class file
require_once '../XPertMailer.php';
/**
* send a simple mail - text/plain format
* --------------------------------------
*/
$mail = new XPertMailer;
// send the e-mail
$send = $mail->send('expertphp@domain.com', 'subject here', 'text here'.CRLF.'new line');
// compare the result and print a message
echo $send ? "Done." : "Error.";
?>