...
This commit is contained in:
parent
c92e416d7e
commit
e21d5faa62
3 changed files with 1001 additions and 4 deletions
|
|
@ -181,12 +181,17 @@ class RoundmailController extends Controller
|
||||||
$r->send_date = Carbon\Carbon::now();
|
$r->send_date = Carbon\Carbon::now();
|
||||||
$r->recipients = request('recipients');
|
$r->recipients = request('recipients');
|
||||||
|
|
||||||
|
Log::info("Topic:" . request('topic'));
|
||||||
Log::info("Recipients: '".$r->recipients."'");
|
Log::info("Recipients: '".$r->recipients."'");
|
||||||
|
|
||||||
$r->topic = request('topic');
|
$r->topic = request('topic');
|
||||||
$r->mail_message = str_replace("\r","",str_replace("\n","<br/>", request('message')));
|
$r->mail_message = str_replace("\r","",str_replace("\n","<br/>", request('message')));
|
||||||
|
|
||||||
\Mail::to(explode(",",$r->recipients))->send($r);
|
try {
|
||||||
|
\Mail::to(explode(",",$r->recipients))->send($r);
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
Log::error('Mail sending failed: ' . $e->getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
// Die hier ist nur für die DB
|
// Die hier ist nur für die DB
|
||||||
$rm = new RoundMail();
|
$rm = new RoundMail();
|
||||||
|
|
@ -234,7 +239,7 @@ class RoundmailController extends Controller
|
||||||
+ LENGTH(name) - LENGTH(REPLACE(name, 'Y', ''))
|
+ LENGTH(name) - LENGTH(REPLACE(name, 'Y', ''))
|
||||||
+ LENGTH(name) - LENGTH(REPLACE(name, 'Z', ''))
|
+ LENGTH(name) - LENGTH(REPLACE(name, 'Z', ''))
|
||||||
) > 4
|
) > 4
|
||||||
AND
|
AND
|
||||||
name <> 'TONI Düsseldorf'
|
name <> 'TONI Düsseldorf'
|
||||||
)"
|
)"
|
||||||
);
|
);
|
||||||
|
|
@ -280,7 +285,11 @@ class RoundmailController extends Controller
|
||||||
$r->mail_message = 'Es fehlen noch Tipps/Joker für: ' . $firstTippableRound->name . '<br/>Die Runde sperrt sich: ' . $roundLockTime . '<br/><br/>Link zum Spiel: <a href="' . Round::getTippSpielLink(). '">( Hier klicken )</a>';
|
$r->mail_message = 'Es fehlen noch Tipps/Joker für: ' . $firstTippableRound->name . '<br/>Die Runde sperrt sich: ' . $roundLockTime . '<br/><br/>Link zum Spiel: <a href="' . Round::getTippSpielLink(). '">( Hier klicken )</a>';
|
||||||
Log::info("Sending Reminder Mails");
|
Log::info("Sending Reminder Mails");
|
||||||
|
|
||||||
\Mail::to($emailsOfUsersWithIncompleteTipps)->send($r);
|
try {
|
||||||
|
\Mail::to($emailsOfUsersWithIncompleteTipps)->send($r);
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
Log::error('Mail sending failed: ' . $e->getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
// Die hier ist nur für die DB
|
// Die hier ist nur für die DB
|
||||||
$rm = new RoundMail();
|
$rm = new RoundMail();
|
||||||
|
|
|
||||||
494
tools/pfosten_2025-07-02_163432.sql
Normal file
494
tools/pfosten_2025-07-02_163432.sql
Normal file
File diff suppressed because one or more lines are too long
494
tools/pfosten_2025-07-03_192619.sql
Normal file
494
tools/pfosten_2025-07-03_192619.sql
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue