Page 1 of 2

more email output options

Posted: Mon Jan 23, 2023 2:29 am
by ynohtna
I've wondered before and hoping it's more feasible now, but I would like an option for the sim to email the teams that have a roster warning or injury. I would like new players on waivers to be emailed out as well.

What's the feasibility of this these days?

Thank you

Re: more email output options

Posted: Sat Jan 28, 2023 3:11 pm
by SimonT
Hi.

This feature is already there, no? When I look at the code, it's there.

Re: more email output options

Posted: Sun Jan 29, 2023 3:08 am
by ynohtna
Hey there

From what I understood in the manual, it emails 'today's games'.

I don't want to spam my GMs with those emails, but I do want to spam the specific GMs that have injuries or auto roster/lines in the transaction log. After each sim, if there's injury or if the sim had to do auto/partial roster/lines, I would like the GM to receive an email of that message :)

Re: more email output options

Posted: Sun Jan 29, 2023 9:12 am
by SimonT
Hi.

When you look at the code (https://github.com/SimonT-STHS/STHS-Dyn ... dEmail.php), look at line 100 to 110. It's checked if the team that played today has invalid line for the next game and if yes, tell the user.

Re: more email output options

Posted: Tue Jan 31, 2023 2:44 am
by ynohtna
ok interesting,

how does get the password for the smtp server? It's not clear to me what field in the UI will do that. I see email server, email reply to.

If everything I need is set up, after a sim, the simulator tool will send emails? Or at what point in time is this email out supposed to be attempted?

Re: more email output options

Posted: Wed Feb 01, 2023 11:23 am
by SimonT
The function to send email is on website. You need to go on your website login as commish and press the command. It's the "webserver" itself what send the email.

Re: more email output options

Posted: Thu Feb 02, 2023 2:40 am
by ynohtna
ah, so is it the "Email General Managers Todays Information" under the Main menu heading?

There it says there are no information to send.

When I look at my transaction log I see quite a few exhaustion injuries... The home page lists them in top headlines section. the today's transactions is empty for some reason, but the full log shows everything.

Can you take a peek and see if something catches your eye? http://www.thebfhl.ca/bfhl/sths/index.php

Thank you

Re: more email output options

Posted: Thu Feb 02, 2023 8:50 pm
by SimonT
Hi.

Yes, it's the "Email General Managers Todays Information" under the Main menu heading.

When you send those email out, any think is send regarding incorrect linesup?

Re: more email output options

Posted: Fri Feb 03, 2023 2:29 am
by ynohtna
It's telling me that there's "No information to send" when I goto the menu "Email General Managers Todays Information"

Re: more email output options

Posted: Fri Feb 03, 2023 2:41 pm
by SimonT
Avais-tu des match dans ton historique de "Today Game"?

Re: more email output options

Posted: Sun Feb 05, 2023 3:10 am
by ynohtna
Today's games I have

Today's transactions show nothing

Re: more email output options

Posted: Sat Feb 11, 2023 7:49 am
by SimonT
Hi.

If you have nothing, it's because your TodayGame table in your SQLite database is empty OR you didn't enter your GM email address in the STHS.

If you want, I can send you some code to upload to your web server to check.

Re: more email output options

Posted: Sun Feb 12, 2023 8:06 pm
by ynohtna
ok sure if it can help.

I have today's games http://www.thebfhl.ca/bfhl/sths/TodayGames.php ... an I have an email on team bullies at least, but no transactions to email him, the below messages to bullies should give me a list of transactions right?


11 11:51:54 PM] Samurai lines for next game are empty. Current rosters/lines are not erased.
[2023-02-11 11:51:54 PM] Hellpeak Demons lines for next game are empty. Current rosters/lines are not erased.
[2023-02-11 11:51:54 PM] Advocates lines for next game are empty. Current rosters/lines are not erased.
[2023-02-11 11:51:54 PM] Luke Schenn of Sheep was sent to farm.
[2023-02-11 11:51:54 PM] Torpedos lines for next game are empty. Current rosters/lines are not erased.
[2023-02-11 11:51:54 PM] Bullies lines for next game are empty. Current rosters/lines are not erased.
[2023-02-11 11:51:54 PM] Phil Kessel from Hellpeak Demons is injured from Exhaustion.
[2023-02-11 11:51:54 PM] Neal Pionk from Bullies is injured from Exhaustion.
[2023-02-11 11:51:54 PM] Anthony Cirelli from Bullies is injured from Exhaustion.
[2023-02-11 11:51:54 PM] Vladimir Tarasenko from Bullies is injured from Exhaustion.
[2023-02-11 11:51:54 PM] Andreas Athanasiou from Bullies is injured from Exhaustion.
[2023-02-11 11:51:54 PM] Game 656 - Laurent Brossoit from Rampage is injured (Back Spasms) and is out for 3 weeks.
[2023-02-11 11:51:54 PM] Matt Duchene from Leopards is injured from Exhaustion.
[2023-02-11 11:51:54 PM] Pro Game #653 - Jakub Voracek from Samurai has scored a Hat Trick!
[2023-02-11 11:51:54 PM] Game 653 - Jonas Siegenthaler from Nokians is injured (Sprained Left Knee) and is out for 1 week.
[2023-02-11 11:51:53 PM] Game 652 - Dylan Cozens from Advocates is injured (Sports Hernia) and is out for 1 week.
[2023-02-11 11:51:50 PM] Auto Lines Partial Function has been run for Bullies.
[2023-02-11 11:51:50 PM] Auto Roster Partial Function has been run for Bullies.
[2023-02-11 11:51:50 PM] Bullies roster errors : Not enough Players available in Pro Team! 17 Dressed. 18 Required. Some errors will be automatically fixed.

Re: more email output options

Posted: Mon Feb 13, 2023 7:17 pm
by SimonT
Send me an email please and I'll send you some new code.

Re: more email output options

Posted: Tue Mar 21, 2023 12:36 am
by ynohtna
Hey Simon,

I haven't had time to follow up since our last chat on email, I was wondering if you will be doing something on this? I believe the root cause was that I hide my GMs emails, so the database doesn't have emails to use?