Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Email in plugins

Comments in 'Plugin Development' started by Tuff, Jun 26, 2014.

  1. Tuff
    Offline

    Tuff Active Member

    Joined:
    Jan 25, 2014
    Posts:
    203
    Minecraft User:
    Roboroug2
    I am making an administrative type plugin, and would like to know how I might go about implementing the php Email feature. I am assuming that I would have to edit the php bin file and add the dependency, but I am probably wrong. I would like to know how I could somehow have my plugin utilize the php email feature, without having the user download the dependency and implement it themselves.

    I hope this thread will be useful to other plugin makers. Server owners would be able to have a plugin that would send them server reports to their inbox.
  2. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    431
    Plugins:
    4
    Minecraft User:
    Lambo
  3. Tuff
    Offline

    Tuff Active Member

    Joined:
    Jan 25, 2014
    Posts:
    203
    Minecraft User:
    Roboroug2
  4. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
  5. Tuff
    Offline

    Tuff Active Member

    Joined:
    Jan 25, 2014
    Posts:
    203
    Minecraft User:
    Roboroug2
    Wait are you saying that would work? If I plugged it into a plugin it would actually email you!? I was thinking you would need to somehow download the mail extension for php.
  6. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    That should work.
  7. Tuff
    Offline

    Tuff Active Member

    Joined:
    Jan 25, 2014
    Posts:
    203
    Minecraft User:
    Roboroug2
    Wow okay, I'll try it out! Now I am excited. I was under the impression that you would have to edit the php bin file and add a mail dependency.
  8. Wantedkillerss
    Offline

    Wantedkillerss Active Member Plugin Developer

    Joined:
    May 9, 2014
    Posts:
    142
    Plugins:
    1
    Minecraft User:
    Wantedkillers
    Wow thanks
  9. Jag
    Offline

    Jag Active Member

    Joined:
    Mar 26, 2014
    Posts:
    53
    Minecraft User:
    Jag
    Any luck with it so far? thanks
  10. Killman2
    Offline

    Killman2 Active Member Plugin Developer

    Joined:
    May 5, 2014
    Posts:
    81
    Plugins:
    1
    Minecraft User:
    Killman2
    Look at ServerMail for the "E-mail in plugins".
  11. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    It is not email...
    iJoshuaHD, LDX, Tuff and 1 other person like this.
  12. Tuff
    Offline

    Tuff Active Member

    Joined:
    Jan 25, 2014
    Posts:
    203
    Minecraft User:
    Roboroug2
    I haven't had the chance to test it but I'll whip something up. I'll say one thing about the new api, it takes a lot longer to make a plugin
  13. jython234
    Offline

    jython234 Notable Member Plugin Developer

    Joined:
    Nov 4, 2013
    Posts:
    324
    Plugins:
    1
    Minecraft User:
    jython234
    You could always write an SMTP client, but the encrypted login with SSL might be hard. Same goes for POP3.
  14. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I am wondering what will be the sender address, and how can you edit it?
  15. Tuff
    Offline

    Tuff Active Member

    Joined:
    Jan 25, 2014
    Posts:
    203
    Minecraft User:
    Roboroug2
    True, I didn't even think of that, you would need an email account to send the emails, and that would need a password.

    Well this just got a lot more interesting.
  16. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    No. That is not the point. The email account only needs password when you access the email server from a separate network. For example you need password to login into [email protected] because if you send a mail directly from your address, you will not send as @gmail.com but maybe as @tuff.net (LOL), so that is not my point. With the mail extension, you will send as your IP address for the domain (after the "@").
  17. Tuff
    Offline

    Tuff Active Member

    Joined:
    Jan 25, 2014
    Posts:
    203
    Minecraft User:
    Roboroug2
    Ya sorry I just got your point. I'd be interested to see what the sender address is as well. Still haven't gotten around to making a test plugin though so I'll have to wait and see.
    PEMapModder likes this.
  18. jython234
    Offline

    jython234 Notable Member Plugin Developer

    Joined:
    Nov 4, 2013
    Posts:
    324
    Plugins:
    1
    Minecraft User:
    jython234
    Last edited: Jun 29, 2014
    Tuff and PEMapModder like this.
  19. Wantedkillerss
    Offline

    Wantedkillerss Active Member Plugin Developer

    Joined:
    May 9, 2014
    Posts:
    142
    Plugins:
    1
    Minecraft User:
    Wantedkillers
    With this i guess I could edit simple auth
    and that when u make a password it will ask for your email so if you forget your password the server will email it to the guys email
    How about texting from the server?
  20. Tuff
    Offline

    Tuff Active Member

    Joined:
    Jan 25, 2014
    Posts:
    203
    Minecraft User:
    Roboroug2
    Please don't jack my thread. We are focusing on email.
    iJoshuaHD, Dutok and PEMapModder like this.

Share This Page

Advertisement