Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/crons/
Upload File :
Current File : /var/www/cesa.co.za/crons/test-send.php

<?php

ini_set('display_errors', 1);
error_reporting(E_ALL);

if (!isset($_SERVER['DOCUMENT_ROOT']) || strlen($_SERVER['DOCUMENT_ROOT']) <= 0) {
    $_SERVER['DOCUMENT_ROOT'] = str_replace('/crons', '', getcwd());
}

//echo $_SERVER['DOCUMENT_ROOT'];
//exit;

include_once($_SERVER['DOCUMENT_ROOT'] . "/cfg/config.php");
include_once($_SERVER['DOCUMENT_ROOT'] . "/php/includes/maill.php");

echo date('Y-m-d H:i:s') . '<br />';

maill(
        'igotafricacc@gmail.com',
        'Test sending',
        '<p>Sending test message to test the sending of mails. Sending test message to test the sending of mails. Sending test message to test the sending of mails</p>',
        null,
        array('isHTML' => true)
);

echo date('Y-m-d H:i:s') . '<br />';

echo 'Test send done' . '<br />';