Visualizzazione dei risultati da 1 a 4 su 4
  1. #1
    Utente di HTML.it
    Registrato dal
    Jul 2006
    Messaggi
    3,072

    [wordpress] gestione invio mail SMTP Gmail

    Ciao a tutti, ho un problema con l'invio di mail da WP usando l'SMTP di Gmail.

    La cosa strana è che sul mio server non ho mai avuto problemi con l'SMTP autenticato di GMail.

    Ho provato ad usare due diversi Plug-ins

    ad esempio con WP-Mail-SMTP ho questo risultato:

    The full debugging output is shown below:

    object(PHPMailer)#260 (58) {
    ["Priority"]=>
    int(3)
    ["CharSet"]=>
    string(5) "UTF-8"
    ["ContentType"]=>
    string(10) "text/plain"
    ["Encoding"]=>
    string(4) "8bit"
    ["ErrorInfo"]=>
    string(55) "The following From address failed: mail.box@gmail.com"
    ["From"]=>
    string(20) "mail.box@gmail.com"
    ["FromName"]=>
    string(15) "Andrea Benaglio"
    ["Sender"]=>
    string(0) ""
    ["Subject"]=>
    string(47) "WP Mail SMTP: Test mail to mail.box@gmail.com"
    ["Body"]=>
    string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin."
    ["AltBody"]=>
    string(0) ""
    ["MIMEBody"rotected]=>
    string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin.
    "
    ["MIMEHeader"rotected]=>
    string(460) "Date: Thu, 31 Jan 2013 09:41:01 +0000
    Return-Path: mail.box@gmail.com
    To: mail.box@gmail.com
    From: Andrea Benaglio
    Subject: WP Mail SMTP: Test mail to mail.box@gmail.com
    Message-ID:
    X-Priority: 3
    X-Mailer: PHPMailer 5.2.1 (http://code.google.com/a/apache-extras.org/p/phpmailer/)
    MIME-Version: 1.0
    Content-Transfer-Encoding: 8bit
    Content-Type: text/plain; charset="UTF-8"


    "
    ["SentMIMEMessage"rotected]=>
    string(533) "Date: Thu, 31 Jan 2013 09:41:01 +0000
    Return-Path: mail.box@gmail.com
    To: mail.box@gmail.com
    From: Andrea Benaglio
    Subject: WP Mail SMTP: Test mail to mail.box@gmail.com
    Message-ID:
    X-Priority: 3
    X-Mailer: PHPMailer 5.2.1 (http://code.google.com/a/apache-extras.org/p/phpmailer/)
    MIME-Version: 1.0
    Content-Transfer-Encoding: 8bit
    Content-Type: text/plain; charset="UTF-8"




    This is a test email generated by the WP Mail SMTP WordPress plugin.
    "
    ["WordWrap"]=>
    int(0)
    ["Mailer"]=>
    string(4) "smtp"
    ["Sendmail"]=>
    string(18) "/usr/sbin/sendmail"
    ["PluginDir"]=>
    string(0) ""
    ["ConfirmReadingTo"]=>
    string(0) ""
    ["Hostname"]=>
    string(0) ""
    ["MessageID"]=>
    string(0) ""
    ["Host"]=>
    string(14) "smtp.gmail.com"
    ["Port"]=>
    string(3) "587"
    ["Helo"]=>
    string(0) ""
    ["SMTPSecure"]=>
    string(3) "ssl"
    ["SMTPAuth"]=>
    bool(true)
    ["Username"]=>
    string(20) "mail.box@gmail.com"
    ["Password"]=>
    string(9) "mypsw"
    ["Timeout"]=>
    int(10)
    ["SMTPDebug"]=>
    int(2)
    ["SMTPKeepAlive"]=>
    bool(false)
    ["SingleTo"]=>
    bool(false)
    ["SingleToArray"]=>
    array(0) {
    }
    ["LE"]=>
    string(1) "
    "
    ["DKIM_selector"]=>
    string(9) "phpmailer"
    ["DKIM_identity"]=>
    string(0) ""
    ["DKIM_passphrase"]=>
    string(0) ""
    ["DKIM_domain"]=>
    string(0) ""
    ["DKIM_private"]=>
    string(0) ""
    ["action_function"]=>
    string(0) ""
    ["Version"]=>
    string(5) "5.2.1"
    ["XMailer"]=>
    string(0) ""
    ["smtp"rotected]=>
    object(SMTP)#290 (8) {
    ["SMTP_PORT"]=>
    int(25)
    ["CRLF"]=>
    string(2) "
    "
    ["do_debug"]=>
    int(2)
    ["do_verp"]=>
    bool(false)
    ["Version"]=>
    string(5) "5.2.1"
    ["smtp_conn":"SMTP"rivate]=>
    bool(false)
    ["error":"SMTP"rivate]=>
    array(1) {
    ["error"]=>
    string(37) "Called Mail() without being connected"
    }
    ["helo_rply":"SMTP"rivate]=>
    NULL
    }
    ["to"rotected]=>
    array(1) {
    [0]=>
    array(2) {
    [0]=>
    string(20) "mail.box@gmail.com"
    [1]=>
    string(0) ""
    }
    }
    ["cc"rotected]=>
    array(0) {
    }
    ["bcc"rotected]=>
    array(0) {
    }
    ["ReplyTo"rotected]=>
    array(0) {
    }
    ["all_recipients"rotected]=>
    array(1) {
    ["mail.box@gmail.com"]=>
    bool(true)
    }
    ["attachment"rotected]=>
    array(0) {
    }
    ["CustomHeader"rotected]=>
    array(0) {
    }
    ["message_type"rotected]=>
    string(5) "plain"
    ["boundary"rotected]=>
    array(3) {
    [1]=>
    string(35) "b1_e0f80404986c1a180d640c9638a65c0e"
    [2]=>
    string(35) "b2_e0f80404986c1a180d640c9638a65c0e"
    [3]=>
    string(35) "b3_e0f80404986c1a180d640c9638a65c0e"
    }
    ["language"rotected]=>
    array(17) {
    ["provide_address"]=>
    string(54) "You must provide at least one recipient email address."
    ["mailer_not_supported"]=>
    string(25) " mailer is not supported."
    ["execute"]=>
    string(19) "Could not execute: "
    ["instantiate"]=>
    string(36) "Could not instantiate mail function."
    ["authenticate"]=>
    string(35) "SMTP Error: Could not authenticate."
    ["from_failed"]=>
    string(35) "The following From address failed: "
    ["recipients_failed"]=>
    string(45) "SMTP Error: The following recipients failed: "
    ["data_not_accepted"]=>
    string(30) "SMTP Error: Data not accepted."
    ["connect_host"]=>
    string(43) "SMTP Error: Could not connect to SMTP host."
    ["file_access"]=>
    string(23) "Could not access file: "
    ["file_open"]=>
    string(33) "File Error: Could not open file: "
    ["encoding"]=>
    string(18) "Unknown encoding: "
    ["signing"]=>
    string(15) "Signing Error: "
    ["smtp_error"]=>
    string(19) "SMTP server error: "
    ["empty_message"]=>
    string(18) "Message body empty"
    ["invalid_address"]=>
    string(15) "Invalid address"
    ["variable_set"]=>
    string(30) "Cannot set or reset variable: "
    }
    ["error_count"rotected]=>
    int(1)
    ["sign_cert_file"rotected]=>
    string(0) ""
    ["sign_key_file"rotected]=>
    string(0) ""
    ["sign_key_pass"rotected]=>
    string(0) ""
    ["exceptions"rotected]=>
    bool(false)
    }
    The SMTP debugging output is shown below:

    SMTP -> ERROR: Failed to connect to server: (0)

    The following From address failed: mail.box@gmail.com



    Secondo voi cosa sbaglio??

    Ovviamente la password della mail è corretta

  2. #2
    Utente di HTML.it
    Registrato dal
    Jan 2013
    Messaggi
    15
    Domanda, dove è hostato il portale? Perche anche io mi ero imbattuto nello stesso problema (tra le altre cose usando un plugin simile) e non riuscivo ad utilizzare l'smtp interno che aveva sempre funzionato per i portali hostati da noi. Cercando ero arrivato al punto che il problema potrebbe essere più dell'host e non di errori di wp.

    Ho risolto utilizzando l'opzione "Use the PHP mail() function to send emails.". La mia fortuna però era che il portale era di piccole dimensioni e quindi non avevo differenze tra utilizzare smtp o la funzione mail() di php.

    Prova a vedere se il tuo host mette a disposizione un servizio smtp e in caso se puoi almeno fare dei test con quello.

    Spero di essere stato di aiuto

  3. #3
    Utente di HTML.it
    Registrato dal
    Jul 2006
    Messaggi
    3,072
    Il server è mio!

    E fino a qualche settimana fa lo stesso plugin, o comunque il generico plungin per SMTP, funzionavano senza problemi con google.

    Non so proprio come risolvere :-(

  4. #4
    Utente di HTML.it
    Registrato dal
    Jan 2013
    Messaggi
    15
    Hai cambiati versione del plugin oppure di wordpress?? Altrimenti l'unica cosa che mi viene in mente è un qualche blocco di google.

    Hai provato con altri smtp?? Comunque il comportamento è identico a quello che avevo io.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.