Advertisement
Guest User

Wordpress 3.4 PHPMailer Not Working

a guest
Jun 18th, 2012
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.10 KB | None | 0 0
  1. Test Message Sent
  2.  
  3. The result was:
  4.  
  5. bool(true)
  6. The full debugging output is shown below:
  7.  
  8. object(PHPMailer)#362 (58) {
  9.  ["Priority"]=>
  10.   int(3)
  11.   ["CharSet"]=>
  12.   string(5) "UTF-8"
  13.   ["ContentType"]=>
  14.   string(10) "text/plain"
  15.   ["Encoding"]=>
  16.   string(4) "8bit"
  17.   ["ErrorInfo"]=>
  18.   string(36) "Could not instantiate mail function."
  19.   ["From"]=>
  20.   string(33) "wordpress@removed.com"
  21.   ["FromName"]=>
  22.   string(9) "WordPress"
  23.   ["Sender"]=>
  24.   string(0) ""
  25.   ["Subject"]=>
  26.   string(53) "WP Mail SMTP: Test mail to robert@removed.com"
  27.   ["Body"]=>
  28.   string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin."
  29.   ["AltBody"]=>
  30.   string(0) ""
  31.   ["MIMEBody:protected"]=>
  32.   string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin.
  33. "
  34.   ["MIMEHeader:protected"]=>
  35.   string(398) "Date: Fri, 15 Jun 2012 17:03:59 +0000
  36. Return-Path: wordpress@removed.com
  37. From: WordPress
  38. Message-ID:
  39. X-Priority: 3
  40. X-Mailer: PHPMailer 5.2.1 (http://code.google.com/a/apache-extras.org/p/phpmailer/)
  41. MIME-Version: 1.0
  42. Content-Transfer-Encoding: 8bit
  43. Content-Type: text/plain; charset="UTF-8"
  44. "
  45.   ["SentMIMEMessage:protected"]=>
  46.   string(565) "Date: Fri, 15 Jun 2012 17:03:59 +0000
  47. Return-Path: wordpress@removed.com
  48. From: WordPress
  49. Message-ID:
  50. X-Priority: 3
  51. X-Mailer: PHPMailer 5.2.1 (http://code.google.com/a/apache-extras.org/p/phpmailer/)
  52. MIME-Version: 1.0
  53. Content-Transfer-Encoding: 8bit
  54. Content-Type: text/plain; charset="UTF-8"
  55. To: robert@removed.com
  56. Subject: WP Mail SMTP: Test mail to robert@removed.com
  57.  
  58.  
  59. This is a test email generated by the WP Mail SMTP WordPress plugin.
  60. "
  61.   ["WordWrap"]=>
  62.   int(0)
  63.   ["Mailer"]=>
  64.   string(4) "mail"
  65.   ["Sendmail"]=>
  66.   string(18) "/usr/sbin/sendmail"
  67.   ["PluginDir"]=>
  68.   string(0) ""
  69.   ["ConfirmReadingTo"]=>
  70.   string(0) ""
  71.   ["Hostname"]=>
  72.   string(23) "removed.com"
  73.   ["MessageID"]=>
  74.   string(0) ""
  75.   ["Host"]=>
  76.   string(9) "localhost"
  77.   ["Port"]=>
  78.   int(25)
  79.   ["Helo"]=>
  80.   string(0) ""
  81.   ["SMTPSecure"]=>
  82.   string(0) ""
  83.   ["SMTPAuth"]=>
  84.   bool(false)
  85.   ["Username"]=>
  86.   string(0) ""
  87.   ["Password"]=>
  88.   string(0) ""
  89.   ["Timeout"]=>
  90.   int(10)
  91.   ["SMTPDebug"]=>
  92.   int(2)
  93.   ["SMTPKeepAlive"]=>
  94.   bool(false)
  95.   ["SingleTo"]=>
  96.   bool(false)
  97.   ["SingleToArray"]=>
  98.   array(0) {
  99.   }
  100.   ["LE"]=>
  101.   string(1) "
  102. "
  103.   ["DKIM_selector"]=>
  104.   string(9) "phpmailer"
  105.   ["DKIM_identity"]=>
  106.   string(0) ""
  107.   ["DKIM_passphrase"]=>
  108.   string(0) ""
  109.   ["DKIM_domain"]=>
  110.   string(0) ""
  111.   ["DKIM_private"]=>
  112.   string(0) ""
  113.   ["action_function"]=>
  114.   string(0) ""
  115.   ["Version"]=>
  116.   string(5) "5.2.1"
  117.   ["XMailer"]=>
  118.   string(0) ""
  119.   ["smtp:protected"]=>
  120.   NULL
  121.   ["to:protected"]=>
  122.   array(1) {
  123.     [0]=>
  124.     array(2) {
  125.       [0]=>
  126.       string(26) "robert@removed.com"
  127.       [1]=>
  128.       string(0) ""
  129.     }
  130.   }
  131.   ["cc:protected"]=>
  132.   array(0) {
  133.   }
  134.   ["bcc:protected"]=>
  135.   array(0) {
  136.   }
  137.   ["ReplyTo:protected"]=>
  138.   array(0) {
  139.   }
  140.   ["all_recipients:protected"]=>
  141.   array(1) {
  142.     ["robert@removed.com"]=>
  143.     bool(true)
  144.   }
  145.   ["attachment:protected"]=>
  146.   array(0) {
  147.   }
  148.   ["CustomHeader:protected"]=>
  149.   array(0) {
  150.   }
  151.   ["message_type:protected"]=>
  152.   string(5) "plain"
  153.   ["boundary:protected"]=>
  154.   array(3) {
  155.     [1]=>
  156.     string(35) "b1_dae2f7d7831d31999367311758d37e12"
  157.     [2]=>
  158.     string(35) "b2_dae2f7d7831d31999367311758d37e12"
  159.     [3]=>
  160.     string(35) "b3_dae2f7d7831d31999367311758d37e12"
  161.   }
  162.   ["language:protected"]=>
  163.   array(17) {
  164.     ["provide_address"]=>
  165.     string(54) "You must provide at least one recipient email address."
  166.     ["mailer_not_supported"]=>
  167.     string(25) " mailer is not supported."
  168.     ["execute"]=>
  169.     string(19) "Could not execute: "
  170.     ["instantiate"]=>
  171.     string(36) "Could not instantiate mail function."
  172.     ["authenticate"]=>
  173.     string(35) "SMTP Error: Could not authenticate."
  174.     ["from_failed"]=>
  175.     string(35) "The following From address failed: "
  176.     ["recipients_failed"]=>
  177.     string(45) "SMTP Error: The following recipients failed: "
  178.     ["data_not_accepted"]=>
  179.     string(30) "SMTP Error: Data not accepted."
  180.     ["connect_host"]=>
  181.     string(43) "SMTP Error: Could not connect to SMTP host."
  182.     ["file_access"]=>
  183.     string(23) "Could not access file: "
  184.     ["file_open"]=>
  185.     string(33) "File Error: Could not open file: "
  186.     ["encoding"]=>
  187.     string(18) "Unknown encoding: "
  188.     ["signing"]=>
  189.     string(15) "Signing Error: "
  190.     ["smtp_error"]=>
  191.     string(19) "SMTP server error: "
  192.     ["empty_message"]=>
  193.     string(18) "Message body empty"
  194.     ["invalid_address"]=>
  195.     string(15) "Invalid address"
  196.     ["variable_set"]=>
  197.     string(30) "Cannot set or reset variable: "
  198.   }
  199.   ["error_count:protected"]=>
  200.   int(1)
  201.   ["sign_cert_file:protected"]=>
  202.   string(0) ""
  203.   ["sign_key_file:protected"]=>
  204.   string(0) ""
  205.   ["sign_key_pass:protected"]=>
  206.   string(0) ""
  207.   ["exceptions:protected"]=>
  208.   bool(false)
  209. }
  210. The SMTP debugging output is shown below:
  211.  
  212. Notice:  validate_email is deprecated since version 3.0! Use is_email() instead. in /wp-includes/functions.php on line 2705
  213.  
  214. Could not instantiate mail function.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement