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

Solved Is anyone help me to making E-mail Login plugin?

Comments in 'Plugin Development' started by hmmmm, Jul 4, 2015.

  1. hmmmm
    Offline

    hmmmm New Member Plugin Developer

    Joined:
    Jul 13, 2014
    Posts:
    31
    Plugins:
    6
    Minecraft User:
    Sky___Blue
    I'm personally developing the e-mail register/login plugins.
    so, anyway i'm added phpmailer to my plug-in project...
    (it's a required a Google Mail Account, and need a SSL)

    and..i successfully writing, and windows is fine..
    because i can easily added php_openssl.dll

    PHP:
     public function startTLS()
        {
            if (!
    $this->sendCommand('STARTTLS''STARTTLS'220)) {
                return 
    false;
            }
            
    // Begin encrypted connection
            
    if (!stream_socket_enable_crypto(
                
    $this->smtp_conn,
                
    true,
                
    STREAM_CRYPTO_METHOD_TLS_CLIENT
            
    )) {
                return 
    false;
            }
            return 
    true;
        }
    https://github.com/if-Team/PMMP-Plugins/blob/master/EmailAuth/src/ifteam/EmailAuth/SMTP.php
    Code:
    2015-07-04 [05:06:43] [Server thread/WARNING]: RuntimeException: "stream_socket_enable_crypto(): this stream does not support SSL/crypto" (E_WARNING) in "/plugins/_SOURCE_EmailAuth/src/ifteam/EmailAuth/SMTP" at line 274
    but real problem is ubuntu,,
    pocketmine php setup script is normally doesn't set up the OpenSSL

    [​IMG]
    i already tried to edit php-build-scripts, but my script is unstable..:(

    so.... now i have only two things.. choice to code (maybe is right)
    1. using PolarSSH ..? (but i don't know PolarSSH)
    2. recompile pocketmine php and add a OpenSSL

    anyone about knowing the how to use PolarSSH or
    how to import the OpenSSH to put in the php cli..?

    [​IMG]
    Last edited: Jul 4, 2015
  2. hmmmm
    Offline

    hmmmm New Member Plugin Developer

    Joined:
    Jul 13, 2014
    Posts:
    31
    Plugins:
    6
    Minecraft User:
    Sky___Blue
    [​IMG]

    i'm success the added OpenSSL to php cli
    i changed php script and added some old code


    [​IMG]

    and it's a clearly work!
    (i'm apply the OpenSSL 1.0.2)

    [​IMG]

    so PHPMailer Mail send() is work!
    anyway so much thanks PM team github!
    (because php-master-script code is all their code!)
    Legoboy0215 likes this.

Share This Page

Advertisement