{"id":3089,"date":"2020-06-26T08:39:09","date_gmt":"2020-06-26T06:39:09","guid":{"rendered":"https:\/\/da-software.net\/?p=3089"},"modified":"2020-06-26T08:39:19","modified_gmt":"2020-06-26T06:39:19","slug":"activate-smtp-debugging-in-formmail-script","status":"publish","type":"post","link":"https:\/\/da-software.net\/en\/2020\/06\/activate-smtp-debugging-in-formmail-script\/","title":{"rendered":"Activate SMTP debugging in formmail script"},"content":{"rendered":"<p>If problems occur when sending e-mails via SMTP, it is useful to activate the diagnostic output.<\/p>\n<p>If the outputs are activated, detailed status and error messages are displayed. These can be useful for diagnosing the problem.<\/p>\n<p>First open the file &#8220;mail.php&#8221; in the folder &#8220;_logic&#8221; with a text editor (recommendation <a href=\"https:\/\/notepad-plus-plus.org\/\">Notepad++<\/a>):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/smtp_1.png\" alt=\"\"\" width=\"403\" height=\"455\" class=\"aligncenter size-full wp-image-3081\" srcset=\"\/wp-content\/uploads\/2020\/06\/smtp_1.png 403w, \/wp-content\/uploads\/2020\/06\/smtp_1-266x300.png 266w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/p>\n<p>Now insert the following line:<\/p>\n<blockquote><p>\n$mailer->SMTPDebug = 2;\n<\/p><\/blockquote>\n<p>The line must be inserted here, the line number may differ slightly depending on the version of the script:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/smtp_2.png\" alt=\"\" width=\"394\" height=\"170\" class=\"aligncenter size-full wp-image-3083\" srcset=\"\/wp-content\/uploads\/2020\/06\/smtp_2.png 394w, \/wp-content\/uploads\/2020\/06\/smtp_2-300x129.png 300w\" sizes=\"auto, (max-width: 394px) 100vw, 394px\" \/><\/p>\n<p>Now test your form with the browser. After sending the form the output will appear. For better readability, activate the <a href=\"https:\/\/ekiwi-blog.de\/Software\/Browser\/Quelltext_im_Browser_anzeigen\/index.html\" target=\"_blank\" rel=\"noopener noreferrer\">source code display in the browser<\/a>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/06\/smtp_3.png\" alt=\"\"\" width=\"860\" height=\"435\" class=\"aligncenter size-full wp-image-3085\" srcset=\"\/wp-content\/uploads\/2020\/06\/smtp_3.png 860w, \/wp-content\/uploads\/2020\/06\/smtp_3-300x152.png 300w, \/wp-content\/uploads\/2020\/06\/smtp_3-768x388.png 768w, \/wp-content\/uploads\/2020\/06\/smtp_3-600x303.png 600w\" sizes=\"auto, (max-width: 860px) 100vw, 860px\" \/><\/p>\n<p>To deactivate the diagnosis again, remove the line.<\/p>","protected":false},"excerpt":{"rendered":"<p>If problems occur when sending e-mails via SMTP, it is useful to activate the diagnostic output. If the outputs are<\/p>\n","protected":false},"author":1,"featured_media":3088,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[202],"tags":[92,210,209],"class_list":["post-3089","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-faq-and-support","tag-da-formmaker-en","tag-faq-en","tag-formmail"],"_links":{"self":[{"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/posts\/3089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/comments?post=3089"}],"version-history":[{"count":0,"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/posts\/3089\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/media\/3088"}],"wp:attachment":[{"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/media?parent=3089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/categories?post=3089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/da-software.net\/en\/wp-json\/wp\/v2\/tags?post=3089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}