• Jimmy

    (@ratones-colorados)


    Buenas.
    Estoy intentando configurar el plugin wp-mail-smtp o algún otro similar.
    La cuenta que uso es de gmail. Según tengo entendido la configuración debería ser así:

    From Email: oscardsessions@gmail.com
    From Name: web oscardsessions.com
    Send all WordPress emails via SMTP.
    SMTP Host: stmp.gmail.com
    SMTP Port: 25
    Encryption: Use SSL encryption.
    Yes: Use SMTP authentication.
    Username: oscardsessions@gmail.com
    Password: *********** (contraseña de cuenta gmail)

    No recibo respuesta al hacer el test de prueba, me devuelve una pantalla en blanco. Al probar otros puertos o variar ssl, la respuesta es «bool(false)».
    Ya que no tengo conocimientos en php, solo he podido probar varias configuraciones.
    Alguna ayuda por favor?
    Gracias.

Viendo 4 respuestas - de la 1 a la 4 (de un total de 4)
  • Hola,

    Prueba el puerto 465 si vas a enviar por SMTP usando SSL. El problema puede estar en ese punto.

    También puedes usar el puerto 587 y desmarcar la opción SSL.

    Un saludo.

    Iniciador del debate Jimmy

    (@ratones-colorados)

    Hola Fernan.
    Gracias por la ayuda.
    He probado las dos opciones sin éxito.
    Debo configurar algo en las dns del host?

    Hola,

    En este caso, el dominio no tiene relación, estás usando un correo externo.

    En la web del plugin que comentas, aparece la configuración para Gmail y sigue los criterios que hemos comentado.
    https://wordpress.org/plugins/wp-mail-smtp/faq/

    Podría ser un problema de contraseña incorrecta, no lo descartes.

    Puedes revisar el registro de errores de tu web para ver los errores de PHP que se producen (y que generan esa pantalla en blanco), con esa información tendremos más datos a revisar.

    Un saludo.

    Iniciador del debate Jimmy

    (@ratones-colorados)

    Hola Fernan.
    Gracias otra vez.
    He seguido la configuración del enlace.
    También he verificado la contraseña.
    Con la configuración aconsejada este es el mensaje de error. (Por si sirve de ayuda).
    Test Message Sent

    The result was:

    bool(false)

    The full debugging output is shown below:

    object(PHPMailer)#4783 (73) {
    [«Version»]=>
    string(6) «5.2.10»
    [«Priority»]=>
    int(3)
    [«CharSet»]=>
    string(5) «UTF-8»
    [«ContentType»]=>
    string(10) «text/plain»
    [«Encoding»]=>
    string(4) «8bit»
    [«ErrorInfo»]=>
    string(35) «SMTP Error: Could not authenticate.»
    [«From»]=>
    string(24) «oscardsessions@gmail.com»
    [«FromName»]=>
    string(5) «oscar»
    [«Sender»]=>
    string(0) «»
    [«ReturnPath»]=>
    string(0) «»
    [«Subject»]=>
    string(48) «WP Mail SMTP: Test mail to oscar78.d@hotmail.com»
    [«Body»]=>
    string(68) «This is a test email generated by the WP Mail SMTP WordPress plugin.»
    [«AltBody»]=>
    string(0) «»
    [«Ical»]=>
    string(0) «»
    [«MIMEBody»:protected]=>
    string(69) «This is a test email generated by the WP Mail SMTP WordPress plugin.
    «
    [«MIMEHeader»:protected]=>
    string(401) «Date: Fri, 18 Sep 2015 10:27:21 +0000
    To: oscar78.d@hotmail.com
    From: oscar
    Subject: WP Mail SMTP: Test mail to oscar78.d@hotmail.com
    Message-ID:
    X-Priority: 3
    X-Mailer: PHPMailer 5.2.10 (https://github.com/PHPMailer/PHPMailer/)
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit

    «
    [«mailHeader»:protected]=>
    string(0) «»
    [«WordWrap»]=>
    int(0)
    [«Mailer»]=>
    string(4) «smtp»
    [«Sendmail»]=>
    string(18) «/usr/sbin/sendmail»
    [«UseSendmailOptions»]=>
    bool(true)
    [«PluginDir»]=>
    string(0) «»
    [«ConfirmReadingTo»]=>
    string(0) «»
    [«Hostname»]=>
    string(0) «»
    [«MessageID»]=>
    string(0) «»
    [«MessageDate»]=>
    string(31) «Fri, 18 Sep 2015 10:27:21 +0000»
    [«Host»]=>
    string(14) «smtp.gmail.com»
    [«Port»]=>
    string(3) «465»
    [«Helo»]=>
    string(0) «»
    [«SMTPSecure»]=>
    string(3) «ssl»
    [«SMTPAutoTLS»]=>
    bool(true)
    [«SMTPAuth»]=>
    bool(true)
    [«SMTPOptions»]=>
    array(0) {
    }
    [«Username»]=>
    string(24) «oscardsessions@gmail.com»
    [«Password»]=>
    string(17) «4sc1r1sessions173»
    [«AuthType»]=>
    string(0) «»
    [«Realm»]=>
    string(0) «»
    [«Workstation»]=>
    string(0) «»
    [«Timeout»]=>
    int(300)
    [«SMTPDebug»]=>
    bool(true)
    [«Debugoutput»]=>
    string(4) «echo»
    [«SMTPKeepAlive»]=>
    bool(false)
    [«SingleTo»]=>
    bool(false)
    [«SingleToArray»]=>
    array(0) {
    }
    [«do_verp»]=>
    bool(false)
    [«AllowEmpty»]=>
    bool(false)
    [«LE»]=>
    string(1) «
    «
    [«DKIM_selector»]=>
    string(0) «»
    [«DKIM_identity»]=>
    string(0) «»
    [«DKIM_passphrase»]=>
    string(0) «»
    [«DKIM_domain»]=>
    string(0) «»
    [«DKIM_private»]=>
    string(0) «»
    [«action_function»]=>
    string(0) «»
    [«XMailer»]=>
    string(0) «»
    [«smtp»:protected]=>
    object(SMTP)#4782 (13) {
    [«Version»]=>
    string(6) «5.2.10»
    [«SMTP_PORT»]=>
    int(25)
    [«CRLF»]=>
    string(2) «
    «
    [«do_debug»]=>
    bool(true)
    [«Debugoutput»]=>
    string(4) «echo»
    [«do_verp»]=>
    bool(false)
    [«Timeout»]=>
    int(300)
    [«Timelimit»]=>
    int(300)
    [«smtp_conn»:protected]=>
    NULL
    [«error»:protected]=>
    array(4) {
    [«error»]=>
    string(0) «»
    [«detail»]=>
    string(0) «»
    [«smtp_code»]=>
    string(0) «»
    [«smtp_code_ex»]=>
    string(0) «»
    }
    [«helo_rply»:protected]=>
    NULL
    [«server_caps»:protected]=>
    NULL
    [«last_reply»:protected]=>
    string(55) «221 2.0.0 closing connection n5sm5136183ywd.1 – gsmtp
    «
    }
    [«to»:protected]=>
    array(1) {
    [0]=>
    array(2) {
    [0]=>
    string(21) «oscar78.d@hotmail.com»
    [1]=>
    string(0) «»
    }
    }
    [«cc»:protected]=>
    array(0) {
    }
    [«bcc»:protected]=>
    array(0) {
    }
    [«ReplyTo»:protected]=>
    array(0) {
    }
    [«all_recipients»:protected]=>
    array(1) {
    [«oscar78.d@hotmail.com»]=>
    bool(true)
    }
    [«attachment»:protected]=>
    array(0) {
    }
    [«CustomHeader»:protected]=>
    array(0) {
    }
    [«lastMessageID»:protected]=>
    string(53) «»
    [«message_type»:protected]=>
    string(5) «plain»
    [«boundary»:protected]=>
    array(3) {
    [1]=>
    string(35) «b1_df1a16e68af789d714cb83e45eb385f7»
    [2]=>
    string(35) «b2_df1a16e68af789d714cb83e45eb385f7»
    [3]=>
    string(35) «b3_df1a16e68af789d714cb83e45eb385f7»
    }
    [«language»:protected]=>
    array(19) {
    [«authenticate»]=>
    string(35) «SMTP Error: Could not authenticate.»
    [«connect_host»]=>
    string(43) «SMTP Error: Could not connect to SMTP host.»
    [«data_not_accepted»]=>
    string(30) «SMTP Error: data not accepted.»
    [«empty_message»]=>
    string(18) «Message body empty»
    [«encoding»]=>
    string(18) «Unknown encoding: «
    [«execute»]=>
    string(19) «Could not execute: «
    [«file_access»]=>
    string(23) «Could not access file: «
    [«file_open»]=>
    string(33) «File Error: Could not open file: «
    [«from_failed»]=>
    string(35) «The following From address failed: «
    [«instantiate»]=>
    string(36) «Could not instantiate mail function.»
    [«invalid_address»]=>
    string(15) «Invalid address»
    [«mailer_not_supported»]=>
    string(25) » mailer is not supported.»
    [«provide_address»]=>
    string(54) «You must provide at least one recipient email address.»
    [«recipients_failed»]=>
    string(45) «SMTP Error: The following recipients failed: «
    [«signing»]=>
    string(15) «Signing Error: «
    [«smtp_connect_failed»]=>
    string(22) «SMTP connect() failed.»
    [«smtp_error»]=>
    string(19) «SMTP server error: «
    [«variable_set»]=>
    string(30) «Cannot set or reset variable: «
    [«extension_missing»]=>
    string(19) «Extension missing: «
    }
    [«error_count»:protected]=>
    int(2)
    [«sign_cert_file»:protected]=>
    string(0) «»
    [«sign_key_file»:protected]=>
    string(0) «»
    [«sign_extracerts_file»:protected]=>
    string(0) «»
    [«sign_key_pass»:protected]=>
    string(0) «»
    [«exceptions»:protected]=>
    bool(true)
    [«uniqueid»:protected]=>
    string(32) «df1a16e68af789d714cb83e45eb385f7»
    }

    The SMTP debugging output is shown below:

    2015-09-18 10:27:21 Connection: opening to ssl://smtp.gmail.com:465, timeout=300, options=array (
    )
    2015-09-18 10:27:21 Connection: opened
    2015-09-18 10:27:21 SMTP -> get_lines(): $data was «»
    2015-09-18 10:27:21 SMTP -> get_lines(): $str is «220 smtp.gmail.com ESMTP n5sm5136183ywd.1 – gsmtp
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «220 smtp.gmail.com ESMTP n5sm5136183ywd.1 – gsmtp
    «
    2015-09-18 10:27:21 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP n5sm5136183ywd.1 – gsmtp
    2015-09-18 10:27:21 CLIENT -> SERVER: EHLO oscardsessions.com
    2015-09-18 10:27:21 SMTP -> get_lines(): $data was «»
    2015-09-18 10:27:21 SMTP -> get_lines(): $str is «250-smtp.gmail.com at your service, [31.170.166.10]
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «250-smtp.gmail.com at your service, [31.170.166.10]
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data was «250-smtp.gmail.com at your service, [31.170.166.10]
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $str is «250-SIZE 35882577
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «250-smtp.gmail.com at your service, [31.170.166.10]
    250-SIZE 35882577
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data was «250-smtp.gmail.com at your service, [31.170.166.10]
    250-SIZE 35882577
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $str is «250-8BITMIME
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «250-smtp.gmail.com at your service, [31.170.166.10]
    250-SIZE 35882577
    250-8BITMIME
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data was «250-smtp.gmail.com at your service, [31.170.166.10]
    250-SIZE 35882577
    250-8BITMIME
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $str is «250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «250-smtp.gmail.com at your service, [31.170.166.10]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data was «250-smtp.gmail.com at your service, [31.170.166.10]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $str is «250-ENHANCEDSTATUSCODES
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «250-smtp.gmail.com at your service, [31.170.166.10]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH
    250-ENHANCEDSTATUSCODES
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data was «250-smtp.gmail.com at your service, [31.170.166.10]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH
    250-ENHANCEDSTATUSCODES
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $str is «250-PIPELINING
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «250-smtp.gmail.com at your service, [31.170.166.10]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data was «250-smtp.gmail.com at your service, [31.170.166.10]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $str is «250-CHUNKING
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «250-smtp.gmail.com at your service, [31.170.166.10]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-CHUNKING
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data was «250-smtp.gmail.com at your service, [31.170.166.10]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-CHUNKING
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $str is «250 SMTPUTF8
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «250-smtp.gmail.com at your service, [31.170.166.10]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-CHUNKING
    250 SMTPUTF8
    «
    2015-09-18 10:27:21 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [31.170.166.10]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN XOAUTH
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-CHUNKING
    250 SMTPUTF8
    2015-09-18 10:27:21 Auth method requested: UNKNOWN
    2015-09-18 10:27:21 Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,XOAUTH
    2015-09-18 10:27:21 Auth method selected: LOGIN
    2015-09-18 10:27:21 CLIENT -> SERVER: AUTH LOGIN
    2015-09-18 10:27:21 SMTP -> get_lines(): $data was «»
    2015-09-18 10:27:21 SMTP -> get_lines(): $str is «334 VXNlcm5hbWU6
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «334 VXNlcm5hbWU6
    «
    2015-09-18 10:27:21 SERVER -> CLIENT: 334 VXNlcm5hbWU6
    2015-09-18 10:27:21 CLIENT -> SERVER: b3NjYXJkc2Vzc2lvbnNAZ21haWwuY29t
    2015-09-18 10:27:21 SMTP -> get_lines(): $data was «»
    2015-09-18 10:27:21 SMTP -> get_lines(): $str is «334 UGFzc3dvcmQ6
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «334 UGFzc3dvcmQ6
    «
    2015-09-18 10:27:21 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
    2015-09-18 10:27:21 CLIENT -> SERVER: NHNjMXIxc2Vzc2lvbnMxNzM=
    2015-09-18 10:27:21 SMTP -> get_lines(): $data was «»
    2015-09-18 10:27:21 SMTP -> get_lines(): $str is «534-5.7.14 get_lines(): $data is «534-5.7.14 get_lines(): $data was «534-5.7.14 get_lines(): $str is «534-5.7.14 MPMfWCS5z71c0H76YPgX7hXSznpuzbHZKxrbDTRT9soYFPaCZVLXqxT9kB7cX15Lab8Yv7
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «534-5.7.14 get_lines(): $data was «534-5.7.14 get_lines(): $str is «534-5.7.14 uu_DdSjNdONfDTY8Pq_ftaTZogG_5wzQV3OQnEuWnQH160kXnCdcafcvlHMS3g9S2Xe0_a
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «534-5.7.14 get_lines(): $data was «534-5.7.14 get_lines(): $str is «534-5.7.14 PizmXNWebAFytv_rPIzPkqYMgLbxzBFUGgtJK19XB5XksD7pfrfZ_MC3necQy6zEOZWBDX
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «534-5.7.14 get_lines(): $data was «534-5.7.14 get_lines(): $str is «534-5.7.14 5MkG8atxcWWOh7MD7GW0r1y01o9g> Please log in via your web browser and
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «534-5.7.14 Please log in via your web browser and
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data was «534-5.7.14 Please log in via your web browser and
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $str is «534-5.7.14 then try again.
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «534-5.7.14 Please log in via your web browser and
    534-5.7.14 then try again.
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data was «534-5.7.14 Please log in via your web browser and
    534-5.7.14 then try again.
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $str is «534-5.7.14 Learn more at
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «534-5.7.14 Please log in via your web browser and
    534-5.7.14 then try again.
    534-5.7.14 Learn more at
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data was «534-5.7.14 Please log in via your web browser and
    534-5.7.14 then try again.
    534-5.7.14 Learn more at
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $str is «534 5.7.14 https://support.google.com/mail/answer/78754 n5sm5136183ywd.1 – gsmtp
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «534-5.7.14 Please log in via your web browser and
    534-5.7.14 then try again.
    534-5.7.14 Learn more at
    534 5.7.14 https://support.google.com/mail/answer/78754 n5sm5136183ywd.1 – gsmtp
    «
    2015-09-18 10:27:21 SERVER -> CLIENT: 534-5.7.14 Please log in via your web browser and
    534-5.7.14 then try again.
    534-5.7.14 Learn more at
    534 5.7.14 https://support.google.com/mail/answer/78754 n5sm5136183ywd.1 – gsmtp
    2015-09-18 10:27:21 SMTP ERROR: Password command failed: 534-5.7.14 Please log in via your web browser and
    534-5.7.14 then try again.
    534-5.7.14 Learn more at
    534 5.7.14 https://support.google.com/mail/answer/78754 n5sm5136183ywd.1 – gsmtp
    2015-09-18 10:27:21 SMTP Error: Could not authenticate.
    2015-09-18 10:27:21 CLIENT -> SERVER: QUIT
    2015-09-18 10:27:21 SMTP -> get_lines(): $data was «»
    2015-09-18 10:27:21 SMTP -> get_lines(): $str is «221 2.0.0 closing connection n5sm5136183ywd.1 – gsmtp
    «
    2015-09-18 10:27:21 SMTP -> get_lines(): $data is «221 2.0.0 closing connection n5sm5136183ywd.1 – gsmtp
    «
    2015-09-18 10:27:21 SERVER -> CLIENT: 221 2.0.0 closing connection n5sm5136183ywd.1 – gsmtp
    2015-09-18 10:27:21 Connection: closed
    2015-09-18 10:27:21 SMTP Error: Could not authenticate.

Viendo 4 respuestas - de la 1 a la 4 (de un total de 4)
  • El debate ‘configurar wp-mail-smtp’ está cerrado a nuevas respuestas.