[Fixed] email event

MrShides

New member
May 2, 2017
9
0
0
47
Hello Trekken.

I finally upgraded to the most recent version of RAT and as you know I rely heavily on the email event so my players can report griefing or hacking to me when I am away. I can run the email test from settings fine. I have tried the default "email test" event as well as my event. It triggers a response to the player as expected, so its picking up the !report trigger, but its not sending the email.

Here is my event:

Player Public Chat

STARTSWITH:!report

sayplayer {{player_name}} "[00FF00]An email will be dispatched. Please provide details such as what you reporting, coords, last time your base was intact, etc... Reports on minibikes are noted, but replacements are not given. Send another report if you have more info to provide"
.SENDEMAIL:Player Reported!||Player {player_name} sent in a report as follows: {player_chat}||redacted@email.com
 

Attachments

  • upload_2017-5-2_14-1-9.png
    upload_2017-5-2_14-1-9.png
    613 bytes · Views: 3
if it helps at all to jog your memory, we troubleshot this in 13 or 14, you provided me a "special version" just for me that you where going to fix it in 15 or 16 officially.

We have a back and forth on the 7daystodie forums in your private messages.
 
if it helps at all to jog your memory, we troubleshot this in 13 or 14, you provided me a "special version" just for me that you where going to fix it in 15 or 16 officially.

We have a back and forth on the 7daystodie forums in your private messages.

Ahh yes, I did remember talking to you about it, but not the specifics of what happened. So yeah... if I remember right, the email code was simply commented out. Which should of been fixed in 16... I looked at the code history and it was fixed, or at least the code was uncommented again. I'll have to mess around with it and see what the issue would be now as v16 should be working.
 
To test, I setup RAT on a new box that has never had rat installed before. The email test in settings, and emails for "ping kick" work fine, but the "event" does not. Could it be you changed the .SENDEMAIL keyword?
 
I just setup version 15 from your repository (i no longer have the .exe you made for me of post 14/pre15).

Send email is not working there either. I think you did not publish the fix into the official build.
 
Ok, so I just noticed that today, from your server, I've been sent several email tests through RAT. So somewhere, my email address is set and not whatever what you want the emails to go to.

Can you paste me your Event Params and Script?
 
when did you recieve the first, and when did you recieve the last. I had 15 and 16 both installed at various points. This can help me determine if I missed something in either when I set them up or perhaps its not taking my email as the last variable.

Or if you could tell me what they said. Of course i have the chat log from rat :D
 
when did you recieve the first, and when did you recieve the last. I had 15 and 16 both installed at various points. This can help me determine if I missed something in either when I set them up or perhaps its not taking my email as the last variable.

I just reinstalled 16, and the example is "youremail@example.com" and I have a feeling that is not your email, so that's not something I could have missed.

I just reinstalled a16 to the other box, and had everyone type "!report a16" who is online. going to do the same with a15.
 
15 is functional, changed out your personal email and all is well with that version. Something changed from 15 to 16.
 
Just ran some tests with the default "!m" command and all passed for me. Granted this is on my in dev version of RAT, so... but at least for my tests, they appear to be working (which would explain why the code didn't look broken to me, heh). So, next version of RAT, please download when it's available and let me know if you still experience any issues with this! Thanks again for all of your troubleshooting help!