{"id":77180,"date":"2017-11-27T17:27:32","date_gmt":"2017-11-27T17:27:32","guid":{"rendered":"https:\/\/br.wordpress.org\/support\/topic\/erro-no-smtp-2\/"},"modified":"2017-11-27T17:29:03","modified_gmt":"2017-11-27T17:29:03","slug":"erro-no-smtp-2","status":"publish","type":"topic","link":"https:\/\/br.wordpress.org\/support\/topic\/erro-no-smtp-2\/","title":{"rendered":"Erro no SMTP"},"content":{"rendered":"<p>Bom dia pessoal estou com um problema no envio de email do site<br \/>\nesta hospedado na digital ocean alguem sabe me falar o que fa\u00e7o para fazer funcionar<br \/>\nestou usando o wp-mail-smtp<br \/>\ntenho esse log<br \/>\nja desabilitei o firewall abri mais portas nele no caso a 465 por ser saida de email<\/p>\n<p>Test Message Sent<\/p>\n<p>The result was:<\/p>\n<p>bool(false)<\/p>\n<p>The full debugging output is shown below:<\/p>\n<p>object(PHPMailer)#17465 (76) {<br \/>\n  [&#8220;Version&#8221;]=&gt;<br \/>\n  string(6) &#8220;5.2.22&#8221;<br \/>\n  [&#8220;Priority&#8221;]=&gt;<br \/>\n  NULL<br \/>\n  [&#8220;CharSet&#8221;]=&gt;<br \/>\n  string(5) &#8220;UTF-8&#8221;<br \/>\n  [&#8220;ContentType&#8221;]=&gt;<br \/>\n  string(10) &#8220;text\/plain&#8221;<br \/>\n  [&#8220;Encoding&#8221;]=&gt;<br \/>\n  string(4) &#8220;7bit&#8221;<br \/>\n  [&#8220;ErrorInfo&#8221;]=&gt;<br \/>\n  string(82) &#8220;SMTP connect() failed. https:\/\/github.com\/PHPMailer\/PHPMailer\/wiki\/Troubleshooting&#8221;<br \/>\n  [&#8220;From&#8221;]=&gt;<br \/>\n  string(40) &#8220;EMAIL-DO-MEU-CLIENTE&#8221;<br \/>\n  [&#8220;FromName&#8221;]=&gt;<br \/>\n  string(35) &#8220;NOME-DO-MEU-CLIENTE&#8221;<br \/>\n  [&#8220;Sender&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;ReturnPath&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;Subject&#8221;]=&gt;<br \/>\n  string(45) &#8220;WP Mail SMTP: Test mail to EMAIL-DO-MEU-CLIENTE&#8221;<br \/>\n  [&#8220;Body&#8221;]=&gt;<br \/>\n  string(68) &#8220;This is a test email generated by the WP Mail SMTP WordPress plugin.&#8221;<br \/>\n  [&#8220;AltBody&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;Ical&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;MIMEBody&#8221;:protected]=&gt;<br \/>\n  string(69) &#8220;This is a test email generated by the WP Mail SMTP WordPress plugin.<br \/>\n&#8221;<br \/>\n  [&#8220;MIMEHeader&#8221;:protected]=&gt;<br \/>\n  string(419) &#8220;Date: Mon, 27 Nov 2017 16:56:20 +0000<br \/>\nTo: EMAIL-DO-MEU-CLIENTE<br \/>\nFrom: =?UTF-8?Q?MEU-CLIENTE?=<br \/>\nSubject: WP Mail SMTP: Test mail to EMAIL-DO-MEU-CLIENTE<br \/>\nMessage-ID: &lt;05f9dfe1b45d098aacf8896431144402@EMAIL-DO-MEU-CLIENTE&gt;<br \/>\nX-Mailer: PHPMailer 5.2.22 (https:\/\/github.com\/PHPMailer\/PHPMailer)<br \/>\nMIME-Version: 1.0<br \/>\nContent-Type: text\/plain; charset=UTF-8<\/p>\n<p>&#8221;<br \/>\n  [&#8220;mailHeader&#8221;:protected]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;WordWrap&#8221;]=&gt;<br \/>\n  int(0)<br \/>\n  [&#8220;Mailer&#8221;]=&gt;<br \/>\n  string(4) &#8220;smtp&#8221;<br \/>\n  [&#8220;Sendmail&#8221;]=&gt;<br \/>\n  string(18) &#8220;\/usr\/sbin\/sendmail&#8221;<br \/>\n  [&#8220;UseSendmailOptions&#8221;]=&gt;<br \/>\n  bool(true)<br \/>\n  [&#8220;PluginDir&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;ConfirmReadingTo&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;Hostname&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;MessageID&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;MessageDate&#8221;]=&gt;<br \/>\n  string(31) &#8220;Mon, 27 Nov 2017 16:56:20 +0000&#8221;<br \/>\n  [&#8220;Host&#8221;]=&gt;<br \/>\n  string(19) &#8220;SERVIDOR-EMAIL-EMPRESARIAL&#8221;<br \/>\n  [&#8220;Port&#8221;]=&gt;<br \/>\n  string(3) &#8220;465&#8221;<br \/>\n  [&#8220;Helo&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;SMTPSecure&#8221;]=&gt;<br \/>\n  string(3) &#8220;ssl&#8221;<br \/>\n  [&#8220;SMTPAutoTLS&#8221;]=&gt;<br \/>\n  bool(true)<br \/>\n  [&#8220;SMTPAuth&#8221;]=&gt;<br \/>\n  bool(true)<br \/>\n  [&#8220;SMTPOptions&#8221;]=&gt;<br \/>\n  array(0) {<br \/>\n  }<br \/>\n  [&#8220;Username&#8221;]=&gt;<br \/>\n  string(25) &#8220;EMAIL-DE-CONEXAO-PARA-ENVIO-DE-EMAIL&#8221;<br \/>\n  [&#8220;Password&#8221;]=&gt;<br \/>\n  string(15) &#8220;SENHA-EMAIL&#8221;<br \/>\n  [&#8220;AuthType&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;Realm&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;Workstation&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;Timeout&#8221;]=&gt;<br \/>\n  int(300)<br \/>\n  [&#8220;SMTPDebug&#8221;]=&gt;<br \/>\n  bool(true)<br \/>\n  [&#8220;Debugoutput&#8221;]=&gt;<br \/>\n  string(4) &#8220;echo&#8221;<br \/>\n  [&#8220;SMTPKeepAlive&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;SingleTo&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;SingleToArray&#8221;]=&gt;<br \/>\n  array(0) {<br \/>\n  }<br \/>\n  [&#8220;do_verp&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;AllowEmpty&#8221;]=&gt;<br \/>\n  bool(false)<br \/>\n  [&#8220;LE&#8221;]=&gt;<br \/>\n  string(1) &#8221;<br \/>\n&#8221;<br \/>\n  [&#8220;DKIM_selector&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;DKIM_identity&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;DKIM_passphrase&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;DKIM_domain&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;DKIM_private&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;DKIM_private_string&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;action_function&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;XMailer&#8221;]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;smtp&#8221;:protected]=&gt;<br \/>\n  object(SMTP)#17501 (14) {<br \/>\n    [&#8220;Version&#8221;]=&gt;<br \/>\n    string(6) &#8220;5.2.22&#8221;<br \/>\n    [&#8220;SMTP_PORT&#8221;]=&gt;<br \/>\n    int(25)<br \/>\n    [&#8220;CRLF&#8221;]=&gt;<br \/>\n    string(2) &#8221;<br \/>\n&#8221;<br \/>\n    [&#8220;do_debug&#8221;]=&gt;<br \/>\n    bool(true)<br \/>\n    [&#8220;Debugoutput&#8221;]=&gt;<br \/>\n    string(4) &#8220;echo&#8221;<br \/>\n    [&#8220;do_verp&#8221;]=&gt;<br \/>\n    bool(false)<br \/>\n    [&#8220;Timeout&#8221;]=&gt;<br \/>\n    int(300)<br \/>\n    [&#8220;Timelimit&#8221;]=&gt;<br \/>\n    int(300)<br \/>\n    [&#8220;smtp_transaction_id_patterns&#8221;:protected]=&gt;<br \/>\n    array(3) {<br \/>\n      [&#8220;exim&#8221;]=&gt;<br \/>\n      string(21) &#8220;\/[0-9]{3} OK id=(.*)\/&#8221;<br \/>\n      [&#8220;sendmail&#8221;]=&gt;<br \/>\n      string(29) &#8220;\/[0-9]{3} 2.0.0 (.*) Message\/&#8221;<br \/>\n      [&#8220;postfix&#8221;]=&gt;<br \/>\n      string(35) &#8220;\/[0-9]{3} 2.0.0 Ok: queued as (.*)\/&#8221;<br \/>\n    }<br \/>\n    [&#8220;smtp_conn&#8221;:protected]=&gt;<br \/>\n    bool(false)<br \/>\n    [&#8220;error&#8221;:protected]=&gt;<br \/>\n    array(4) {<br \/>\n      [&#8220;error&#8221;]=&gt;<br \/>\n      string(0) &#8220;&#8221;<br \/>\n      [&#8220;detail&#8221;]=&gt;<br \/>\n      string(0) &#8220;&#8221;<br \/>\n      [&#8220;smtp_code&#8221;]=&gt;<br \/>\n      string(0) &#8220;&#8221;<br \/>\n      [&#8220;smtp_code_ex&#8221;]=&gt;<br \/>\n      string(0) &#8220;&#8221;<br \/>\n    }<br \/>\n    [&#8220;helo_rply&#8221;:protected]=&gt;<br \/>\n    NULL<br \/>\n    [&#8220;server_caps&#8221;:protected]=&gt;<br \/>\n    NULL<br \/>\n    [&#8220;last_reply&#8221;:protected]=&gt;<br \/>\n    string(0) &#8220;&#8221;<br \/>\n  }<br \/>\n  [&#8220;to&#8221;:protected]=&gt;<br \/>\n  array(1) {<br \/>\n    [0]=&gt;<br \/>\n    array(2) {<br \/>\n      [0]=&gt;<br \/>\n      string(18) &#8220;EMAIL-DO-MEU-CLIENTE&#8221;<br \/>\n      [1]=&gt;<br \/>\n      string(0) &#8220;&#8221;<br \/>\n    }<br \/>\n  }<br \/>\n  [&#8220;cc&#8221;:protected]=&gt;<br \/>\n  array(0) {<br \/>\n  }<br \/>\n  [&#8220;bcc&#8221;:protected]=&gt;<br \/>\n  array(0) {<br \/>\n  }<br \/>\n  [&#8220;ReplyTo&#8221;:protected]=&gt;<br \/>\n  array(0) {<br \/>\n  }<br \/>\n  [&#8220;all_recipients&#8221;:protected]=&gt;<br \/>\n  array(1) {<br \/>\n    [&#8220;EMAIL-DO-MEU-CLIENTE&#8221;]=&gt;<br \/>\n    bool(true)<br \/>\n  }<br \/>\n  [&#8220;RecipientsQueue&#8221;:protected]=&gt;<br \/>\n  array(0) {<br \/>\n  }<br \/>\n  [&#8220;ReplyToQueue&#8221;:protected]=&gt;<br \/>\n  array(0) {<br \/>\n  }<br \/>\n  [&#8220;attachment&#8221;:protected]=&gt;<br \/>\n  array(0) {<br \/>\n  }<br \/>\n  [&#8220;CustomHeader&#8221;:protected]=&gt;<br \/>\n  array(0) {<br \/>\n  }<br \/>\n  [&#8220;lastMessageID&#8221;:protected]=&gt;<br \/>\n  string(62) &#8220;&lt;05f9dfe1b45d098aacf8896431144402@EMAIL-DO-MEU-CLIENTE&gt;&#8221;<br \/>\n  [&#8220;message_type&#8221;:protected]=&gt;<br \/>\n  string(5) &#8220;plain&#8221;<br \/>\n  [&#8220;boundary&#8221;:protected]=&gt;<br \/>\n  array(3) {<br \/>\n    [1]=&gt;<br \/>\n    string(35) &#8220;b1_05f9dfe1b45d098aacf8896431144402&#8221;<br \/>\n    [2]=&gt;<br \/>\n    string(35) &#8220;b2_05f9dfe1b45d098aacf8896431144402&#8221;<br \/>\n    [3]=&gt;<br \/>\n    string(35) &#8220;b3_05f9dfe1b45d098aacf8896431144402&#8221;<br \/>\n  }<br \/>\n  [&#8220;language&#8221;:protected]=&gt;<br \/>\n  array(19) {<br \/>\n    [&#8220;authenticate&#8221;]=&gt;<br \/>\n    string(35) &#8220;SMTP Error: Could not authenticate.&#8221;<br \/>\n    [&#8220;connect_host&#8221;]=&gt;<br \/>\n    string(43) &#8220;SMTP Error: Could not connect to SMTP host.&#8221;<br \/>\n    [&#8220;data_not_accepted&#8221;]=&gt;<br \/>\n    string(30) &#8220;SMTP Error: data not accepted.&#8221;<br \/>\n    [&#8220;empty_message&#8221;]=&gt;<br \/>\n    string(18) &#8220;Message body empty&#8221;<br \/>\n    [&#8220;encoding&#8221;]=&gt;<br \/>\n    string(18) &#8220;Unknown encoding: &#8221;<br \/>\n    [&#8220;execute&#8221;]=&gt;<br \/>\n    string(19) &#8220;Could not execute: &#8221;<br \/>\n    [&#8220;file_access&#8221;]=&gt;<br \/>\n    string(23) &#8220;Could not access file: &#8221;<br \/>\n    [&#8220;file_open&#8221;]=&gt;<br \/>\n    string(33) &#8220;File Error: Could not open file: &#8221;<br \/>\n    [&#8220;from_failed&#8221;]=&gt;<br \/>\n    string(35) &#8220;The following From address failed: &#8221;<br \/>\n    [&#8220;instantiate&#8221;]=&gt;<br \/>\n    string(36) &#8220;Could not instantiate mail function.&#8221;<br \/>\n    [&#8220;invalid_address&#8221;]=&gt;<br \/>\n    string(17) &#8220;Invalid address: &#8221;<br \/>\n    [&#8220;mailer_not_supported&#8221;]=&gt;<br \/>\n    string(25) &#8221; mailer is not supported.&#8221;<br \/>\n    [&#8220;provide_address&#8221;]=&gt;<br \/>\n    string(54) &#8220;You must provide at least one recipient email address.&#8221;<br \/>\n    [&#8220;recipients_failed&#8221;]=&gt;<br \/>\n    string(45) &#8220;SMTP Error: The following recipients failed: &#8221;<br \/>\n    [&#8220;signing&#8221;]=&gt;<br \/>\n    string(15) &#8220;Signing Error: &#8221;<br \/>\n    [&#8220;smtp_connect_failed&#8221;]=&gt;<br \/>\n    string(22) &#8220;SMTP connect() failed.&#8221;<br \/>\n    [&#8220;smtp_error&#8221;]=&gt;<br \/>\n    string(19) &#8220;SMTP server error: &#8221;<br \/>\n    [&#8220;variable_set&#8221;]=&gt;<br \/>\n    string(30) &#8220;Cannot set or reset variable: &#8221;<br \/>\n    [&#8220;extension_missing&#8221;]=&gt;<br \/>\n    string(19) &#8220;Extension missing: &#8221;<br \/>\n  }<br \/>\n  [&#8220;error_count&#8221;:protected]=&gt;<br \/>\n  int(2)<br \/>\n  [&#8220;sign_cert_file&#8221;:protected]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;sign_key_file&#8221;:protected]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;sign_extracerts_file&#8221;:protected]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;sign_key_pass&#8221;:protected]=&gt;<br \/>\n  string(0) &#8220;&#8221;<br \/>\n  [&#8220;exceptions&#8221;:protected]=&gt;<br \/>\n  bool(true)<br \/>\n  [&#8220;uniqueid&#8221;:protected]=&gt;<br \/>\n  string(32) &#8220;05f9dfe1b45d098aacf8896431144402&#8221;<br \/>\n}<\/p>\n<p>The SMTP debugging output is shown below:<\/p>\n<p>2017-11-27 16:56:20\tConnection: opening to ssl:\/\/SERVIDOR-EMAIL-EMPRESARIAL:465, timeout=300, options=array (<br \/>\n                   \t                  )<br \/>\n2017-11-27 16:58:27\tConnection: Failed to connect to server. Error number 2. &#8220;Error notice: stream_socket_client(): unable to connect to ssl:\/\/SERVIDOR-EMAIL-EMPRESARIAL:465 (Connection timed out)<br \/>\n2017-11-27 16:58:27\tSMTP ERROR: Failed to connect to server: Connection timed out (110)<br \/>\n2017-11-27 16:58:27\tSMTP connect() failed. https:\/\/github.com\/PHPMailer\/PHPMailer\/wiki\/Troubleshooting<\/p>\n","protected":false},"template":"","class_list":["post-77180","topic","type-topic","status-publish","hentry","topic-tag-digital-ocean","topic-tag-email","topic-tag-smtp","topic-tag-wp"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/77180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/77180\/revisions"}],"predecessor-version":[{"id":77181,"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/77180\/revisions\/77181"}],"wp:attachment":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=77180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}