MPOS/php-mpos

View on GitHub
scripts/test_email.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

// Change to working directory
chdir(dirname(__FILE__));

// Include all settings and classes
require_once('shared.inc.php');

// Send email
$aMailData = array(
    'email' => $setting->getValue('system_error_email'),
    'subject' => 'Test email from mining pool',
    'coinname' => $config['gettingstarted']['coinname'],
    'stratumurl' => $config['gettingstarted']['stratumurl'],
    'stratumport' => $config['gettingstarted']['stratumport']
);

if (!$mail->sendMail('notifications/test_email', $aMailData))
    echo "Failed to send test email" . PHP_EOL;