From 88eaf66668336d2b8bd598471f02883553994156 Mon Sep 17 00:00:00 2001 From: VictorMezrin Date: Thu, 15 May 2014 11:15:52 +0400 Subject: [PATCH] Add a script to send a test email --- scripts/test_email.php | 19 +++++++++++++++++++ templates/mail/notifications/test_email.tpl | 6 ++++++ 2 files changed, 25 insertions(+) create mode 100755 scripts/test_email.php create mode 100644 templates/mail/notifications/test_email.tpl diff --git a/scripts/test_email.php b/scripts/test_email.php new file mode 100755 index 000000000..838e846b8 --- /dev/null +++ b/scripts/test_email.php @@ -0,0 +1,19 @@ + $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; diff --git a/templates/mail/notifications/test_email.tpl b/templates/mail/notifications/test_email.tpl new file mode 100644 index 000000000..b4595b131 --- /dev/null +++ b/templates/mail/notifications/test_email.tpl @@ -0,0 +1,6 @@ +{include file="../global/header.tpl"} +

Test email

+

If you see this email - your email protocol is configured correctly

+

Coin name: {$DATA.coinname}

+

Stratum: {$DATA.stratumurl}:{$DATA.stratumport}

+{include file="../global/footer.tpl"}