mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Stripped file extensions from executables
This commit is contained in:
19
scripts/test-email
Executable file
19
scripts/test-email
Executable file
@ -0,0 +1,19 @@
|
||||
#!/usr/bin/php
|
||||
<?php
|
||||
require_once(__DIR__
|
||||
. DIRECTORY_SEPARATOR . '..'
|
||||
. DIRECTORY_SEPARATOR . 'src'
|
||||
. DIRECTORY_SEPARATOR . 'Bootstrap.php');
|
||||
|
||||
use Szurubooru\Injector;
|
||||
use Szurubooru\Services\EmailService;
|
||||
|
||||
if (!isset($argv[1]))
|
||||
{
|
||||
echo "No recipient email specified.";
|
||||
return;
|
||||
}
|
||||
$address = $argv[1];
|
||||
|
||||
$emailService = Injector::get(EmailService::class);
|
||||
$emailService->sendEmail($address, 'test', "test\nąćęłóńśźż\n←↑→↓");
|
Reference in New Issue
Block a user