So... we see you haven't signed up here on our website.  

Do you really want to sit here and be "Unregistered" all your life?  No, of course you don't!  So, click this here link and you'll take that all important first step into enlightenment! (or something, whatever...)

[Fixed] email event

Discussion in 'Bug Reports' started by MrShides, May 2, 2017.

  1. MrShides

    MrShides New Member

    Points:
    14
    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
     

    Attached Files:

  2. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,267
    Quick question, did you set the email settings (host, password, etc) in the RAT settings?
     
  3. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,267
    Ignore my stupid statement above, I see you said you did it from the RAT settings fine. I'll look at it. =)
     
  4. MrShides

    MrShides New Member

    Points:
    14
    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.
     
  5. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,267
    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.
     
  6. MrShides

    MrShides New Member

    Points:
    14
    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?
     
  7. MrShides

    MrShides New Member

    Points:
    14
    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.
     
  8. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,267
    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?
     
  9. MrShides

    MrShides New Member

    Points:
    14
    Its the one above, at the end where it says redacted, it has my email.
     
  10. MrShides

    MrShides New Member

    Points:
    14
    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
     
  11. MrShides

    MrShides New Member

    Points:
    14
    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.
     
  12. MrShides

    MrShides New Member

    Points:
    14
    15 default event is in fact to your personal email. Testing that now.
     
  13. MrShides

    MrShides New Member

    Points:
    14
    15 is functional, changed out your personal email and all is well with that version. Something changed from 15 to 16.
     
  14. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,267
    Ok great, thanks for all the testing and sorry for all the trouble! I'll see about making sure the next release has this fixed!
     
  15. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,267
    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!
     

Share This Page