forked from MPOS/php-mpos
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{include file="../global/header.tpl"} | ||
<h1>Test email</h1> | ||
<p>If you see this email - your email protocol is configured correctly</p> | ||
<p>Coin name: {$DATA.coinname}</p> | ||
<p>Stratum: {$DATA.stratumurl}:{$DATA.stratumport}</p> | ||
{include file="../global/footer.tpl"} |