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. Dutok
    Offline

    Dutok Notable Member Plugin Developer

    Joined:
    Jun 20, 2014
    Posts:
    371
    Plugins:
    3
    Minecraft User:
    Dutok
    Does the php mail() function not work in this situation?
  2. jython234
    Offline

    jython234 Notable Member Plugin Developer

    Joined:
    Nov 4, 2013
    Posts:
    324
    Plugins:
    1
    Minecraft User:
    jython234
    I don't think so, they would have to mess around with php.ini, and we want to use an SMTP server to send the mail.
  3. Dutok
    Offline

    Dutok Notable Member Plugin Developer

    Joined:
    Jun 20, 2014
    Posts:
    371
    Plugins:
    3
    Minecraft User:
    Dutok
    Oh.. I think they can still do this in PHP though?
  4. jython234
    Offline

    jython234 Notable Member Plugin Developer

    Joined:
    Nov 4, 2013
    Posts:
    324
    Plugins:
    1
    Minecraft User:
    jython234
    The thing is that mail() doesn't require a password, this suggests that the mail is sent from the computer ([email protected]). The SMTP server requires a password to work. Also, if we could find the source of a mail library, we could bundle it into the PHAR, which would be WAY easier than setting up PEAR.

    Our options:
    • We could write our own mail library (hard)
    • We could set up a pear library
    • We could bundle a library in our PHAR
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Emphasize it must be a PHP library.
    Dutok likes this.
  6. Tuff
    Offline

    Tuff Active Member

    Joined:
    Jan 25, 2014
    Posts:
    203
    Minecraft User:
    Roboroug2
    I read that the PEAR extension was installed by default. If it isn't then please do go on with writing a Python script. That would be helpful.
  7. Tuff
    Offline

    Tuff Active Member

    Joined:
    Jan 25, 2014
    Posts:
    203
    Minecraft User:
    Roboroug2
    Would installing PEAR be so difficult?
  8. jython234
    Offline

    jython234 Notable Member Plugin Developer

    Joined:
    Nov 4, 2013
    Posts:
    324
    Plugins:
    1
    Minecraft User:
    jython234
    On Linux no, but what about windows?
    Also, the php provided by pocketmine does not include PEAR.

    Oh, and I will write the script once I get home from vacation (small delay :))
    Tuff and iJoshuaHD like this.
  9. Wantedkillerss
    Offline

    Wantedkillerss Active Member Plugin Developer

    Joined:
    May 9, 2014
    Posts:
    142
    Plugins:
    1
    Minecraft User:
    Wantedkillers
    Maybe u could hook it up to a phone with unlimited texting so it would cost u 30$ a month
  10. jython234
    Offline

    jython234 Notable Member Plugin Developer

    Joined:
    Nov 4, 2013
    Posts:
    324
    Plugins:
    1
    Minecraft User:
    jython234
    We aren't doing texting here.

Share This Page

Advertisement