Plugin to send the owner an email via in-game command?

Discussion in 'Bukkit Help' started by discoverdan, Sep 14, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    discoverdan

    Is there a plugin that allows users to use a command to send an email to the owner via an ingame command?

    Basically I'm looking for a way to always keep in contact with my server if there's ever any issues... I'd like a plugin that allows a command such as "/emailadmin (subject) (message)" from ingame. This will allow me to receive the email via my iPhone and try to fix the problem ASAP, a much easier solution then the players having to exit the game and email me directly.

    Thanks.

    Nobody know of any? That's a shame...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 28, 2016
  2. Offline

    Yurikoma

    it is possible, but im not sure if anyone has made one that emails you personaly
     
  3. Offline

    lol768

    URLManager API

    Make a PHP script that accepts some GET variables. Use the aforementioned API to do a GET request on the URL and use the mail function in PHP to send the email.
     
  4. Offline

    discoverdan

    Could you please attempt to make this plugin? As I think it needs to be made, are you up for the task?

    Thank you! :)
     
  5. Offline

    lol768

    The issue would be in making it work on all servers + hosting environments. Unless you have a web server + SMTP server, it w on't work
     
  6. Offline

    discoverdan

    I see, I have no idea what any of that means, so please excuse my ignorance...

    Does that mean I have to have web hosting for it to work?
     
  7. Offline

    Tux_Peng

    You might be able to work out something with a gTalk accout & EssentialsXMPP
     
  8. Offline

    lol768

    Yes.
     
  9. Offline

    LHammonds

    If you are using a Linux server, you could make use of "sendemail" with a couple of extra libraries so it could use a GMail account. You would just need to figure out how to get a console command to write to a file. A bukkit plugin could create a text file (like the plugin called "BookCopier"), you could have a script running via crontab that looks for the email file...if it finds it, load the contents, send the email and delete the email file that the plugin created.

    I'd be willing to help with the documentation and creation of the Linux script if somebody would be willing to create a plugin that write the message to a file.

    I would imagine the plugin would have a corresponding "config.yml" that would contain the target email address.

    Send me a PM if anyone is interested in creating such a plugin (I probably won't see this thread again. hehehe)

    LHammonds
     
  10. Offline

    breezeyboy

    Unless we quote you and you read you alerts :p
     
  11. Offline

    LHammonds

    FYI - On an Ubuntu Server, you install the required components like this:

    Code:
    aptitude install sendemail libio-socket-ssl-perl libnet-ssleay-perl perl
    The "libio-socket-ssl-perl" and "libnet-ssleay-perl" are required to allow sendemail to use the TLS encryption options because gmail will not let you send without encryption enabled. You probably don't need to add "perl" on the end since it is installed by default but I mentioned it since it is a requirement for the rest to work.

    Once those are installed, you can send yourself an email from your Ubuntu Server.

    Example:

    Code:
    sendEmail -f [email protected] -t "[email protected]" -u "My Subject" -m "My Message" -s smtp.gmail.com:587 -o tls=yes -xu MyAddress -xp MyGmailPassword
    NOTE: The username in the -xu field must be the gmail username only which does not include the @gmail.com suffix.

    LHammonds
     
  12. Offline

    zipron

    Easiest enviroment to create: a plugin which posts messages in a database with the username, time, maybe world, message,.. and a web based control panel with php =) win!
     
  13. Offline

    Exodus_Mike

    Adminium is a iOS app that has /calladmin which is pretty useful if you have an iPhone with data.
     
  14. Offline

    Jozeth

    I thought of that but it sends the Subject and Message to a database or file whilst going through a .php which fills out the correct things and sends it off.
     
  15. Offline

    zipron

    Php is called by a webpage, so you'd have to press a button on your website to flush your database into an email, why not using the web page as a support interface?
     
Thread Status:
Not open for further replies.

Share This Page