more email output options

Your suggestions are always welcome. / Vos suggestions sont toujours bienvenues.
ynohtna
The Addict / Le Drogué
Posts: 770
Joined: Mon Aug 14, 2006 5:15 pm
Location: Vancouver, BC
Contact:

more email output options

Post 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
BFHL Admin/Commish
http://www.thebfhl.ca/bfhl
Now in Season 15, using BRHL Player v2.1 Ratings modified.
SimonT
STHS Owner / Propriétaire du STHS
Posts: 14755
Joined: Sat Oct 08, 2005 4:18 pm
Location: Montreal, Canada
Contact:

Re: more email output options

Post by SimonT »

Hi.

This feature is already there, no? When I look at the code, it's there.
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
ynohtna
The Addict / Le Drogué
Posts: 770
Joined: Mon Aug 14, 2006 5:15 pm
Location: Vancouver, BC
Contact:

Re: more email output options

Post 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 :)
BFHL Admin/Commish
http://www.thebfhl.ca/bfhl
Now in Season 15, using BRHL Player v2.1 Ratings modified.
SimonT
STHS Owner / Propriétaire du STHS
Posts: 14755
Joined: Sat Oct 08, 2005 4:18 pm
Location: Montreal, Canada
Contact:

Re: more email output options

Post 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.
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
ynohtna
The Addict / Le Drogué
Posts: 770
Joined: Mon Aug 14, 2006 5:15 pm
Location: Vancouver, BC
Contact:

Re: more email output options

Post 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?
BFHL Admin/Commish
http://www.thebfhl.ca/bfhl
Now in Season 15, using BRHL Player v2.1 Ratings modified.
SimonT
STHS Owner / Propriétaire du STHS
Posts: 14755
Joined: Sat Oct 08, 2005 4:18 pm
Location: Montreal, Canada
Contact:

Re: more email output options

Post 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.
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
ynohtna
The Addict / Le Drogué
Posts: 770
Joined: Mon Aug 14, 2006 5:15 pm
Location: Vancouver, BC
Contact:

Re: more email output options

Post 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
BFHL Admin/Commish
http://www.thebfhl.ca/bfhl
Now in Season 15, using BRHL Player v2.1 Ratings modified.
SimonT
STHS Owner / Propriétaire du STHS
Posts: 14755
Joined: Sat Oct 08, 2005 4:18 pm
Location: Montreal, Canada
Contact:

Re: more email output options

Post 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?
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
ynohtna
The Addict / Le Drogué
Posts: 770
Joined: Mon Aug 14, 2006 5:15 pm
Location: Vancouver, BC
Contact:

Re: more email output options

Post by ynohtna »

It's telling me that there's "No information to send" when I goto the menu "Email General Managers Todays Information"
BFHL Admin/Commish
http://www.thebfhl.ca/bfhl
Now in Season 15, using BRHL Player v2.1 Ratings modified.
SimonT
STHS Owner / Propriétaire du STHS
Posts: 14755
Joined: Sat Oct 08, 2005 4:18 pm
Location: Montreal, Canada
Contact:

Re: more email output options

Post by SimonT »

Avais-tu des match dans ton historique de "Today Game"?
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
ynohtna
The Addict / Le Drogué
Posts: 770
Joined: Mon Aug 14, 2006 5:15 pm
Location: Vancouver, BC
Contact:

Re: more email output options

Post by ynohtna »

Today's games I have

Today's transactions show nothing
BFHL Admin/Commish
http://www.thebfhl.ca/bfhl
Now in Season 15, using BRHL Player v2.1 Ratings modified.
SimonT
STHS Owner / Propriétaire du STHS
Posts: 14755
Joined: Sat Oct 08, 2005 4:18 pm
Location: Montreal, Canada
Contact:

Re: more email output options

Post 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.
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
ynohtna
The Addict / Le Drogué
Posts: 770
Joined: Mon Aug 14, 2006 5:15 pm
Location: Vancouver, BC
Contact:

Re: more email output options

Post 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.
BFHL Admin/Commish
http://www.thebfhl.ca/bfhl
Now in Season 15, using BRHL Player v2.1 Ratings modified.
SimonT
STHS Owner / Propriétaire du STHS
Posts: 14755
Joined: Sat Oct 08, 2005 4:18 pm
Location: Montreal, Canada
Contact:

Re: more email output options

Post by SimonT »

Send me an email please and I'll send you some new code.
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English V2 & V3 Manual - Manuel V2 & V3 Français
ynohtna
The Addict / Le Drogué
Posts: 770
Joined: Mon Aug 14, 2006 5:15 pm
Location: Vancouver, BC
Contact:

Re: more email output options

Post 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?
BFHL Admin/Commish
http://www.thebfhl.ca/bfhl
Now in Season 15, using BRHL Player v2.1 Ratings modified.
Post Reply