{"id":4769,"date":"2023-01-01T16:29:47","date_gmt":"2023-01-01T15:29:47","guid":{"rendered":"https:\/\/ekiwi.de\/?p=4769"},"modified":"2023-08-19T10:50:46","modified_gmt":"2023-08-19T08:50:46","slug":"wordpress-sending-mail-with-smtp-with-wp-mail-smtp","status":"publish","type":"post","link":"https:\/\/ekiwi.de\/en\/index.php\/4769\/wordpress-sending-mail-with-smtp-with-wp-mail-smtp\/","title":{"rendered":"WordPress: Sending mail with SMTP with WP Mail SMTP"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of content<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ekiwi.de\/en\/index.php\/4769\/wordpress-sending-mail-with-smtp-with-wp-mail-smtp\/#WP_Mail_SMTP\" >WP Mail SMTP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ekiwi.de\/en\/index.php\/4769\/wordpress-sending-mail-with-smtp-with-wp-mail-smtp\/#Set_up_plugin\" >Set up plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ekiwi.de\/en\/index.php\/4769\/wordpress-sending-mail-with-smtp-with-wp-mail-smtp\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<p>How do I change the mail dispatch from WordPress to SMTP dispatch?<\/p>\n<p><!--more--><\/p>\n<p>By default, WordPress sends mail via the &#8220;<a href=\"https:\/\/www.php.net\/manual\/de\/function.mail.php\" target=\"_blank\" rel=\"noopener\">mail<\/a>&#8221; function of PHP. In this case, the mail is usually sent via the server itself. This can lead to problems when sending the mail, e.g. if the target server marks the mail as spam.<\/p>\n<p>In many cases, it is better to send the mail via SMTP, as it is also done via your own mail programme. There are various plug-ins that address this issue. In this article we will take a look at &#8220;<a href=\"https:\/\/de.wordpress.org\/plugins\/wp-mail-smtp\/\" target=\"_blank\" rel=\"noopener\">WP Mail SMTP<\/a>&#8220;.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"WP_Mail_SMTP\"><\/span>WP Mail SMTP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The plugin can be installed via the plugin page in WordPress. Besides SMTP, special service providers like MailGun, Sendgrid and others are supported. As a bonus, the plugin also installs the &#8220;WpForms&#8221; plugin for creating forms. A bit overkill, but OK.<\/p>\n<p>The provider follows the popular freemium model. The basic functions are free, extended functions cost money. These include, for example, the logging of the mail dispatch.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4740\" src=\"\/wp-content\/uploads\/2023\/01\/wpforms_1.png\" alt=\"\" width=\"578\" height=\"372\" srcset=\"\/wp-content\/uploads\/2023\/01\/wpforms_1.png 578w, \/wp-content\/uploads\/2023\/01\/wpforms_1-300x193.png 300w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Set_up_plugin\"><\/span>Set up plugin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The setup itself is easy to do. We specify the mail provider, in our case SMTP, and enter the access data.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4742\" src=\"\/wp-content\/uploads\/2023\/01\/wpforms_2.png\" alt=\"\" width=\"742\" height=\"390\" srcset=\"\/wp-content\/uploads\/2023\/01\/wpforms_2.png 742w, \/wp-content\/uploads\/2023\/01\/wpforms_2-300x158.png 300w\" sizes=\"auto, (max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>Encrypted sending is supported, as is authentication.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4744\" src=\"\/wp-content\/uploads\/2023\/01\/wpforms_3.png\" alt=\"\" width=\"742\" height=\"390\" srcset=\"\/wp-content\/uploads\/2023\/01\/wpforms_3.png 742w, \/wp-content\/uploads\/2023\/01\/wpforms_3-300x158.png 300w\" sizes=\"auto, (max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>Afterwards we can send a test <a title=\"automatically execute a VBA macro on email receipt\" href=\"https:\/\/ekiwi-blog.de\/en\/54162\/vba-outlook-macro-automatically-execute-on-email-receipt\/\" target=\"_blank\" rel=\"noopener\">email<\/a>. If everything has worked, it will land in our inbox.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The plugin does what it is supposed to do. It is set up quickly. The installation of the form plugin is negative. We would also have liked some functions to be activated in the free version, such as the logging of e-mails sent. The paid version starts at 50 dollars a year. If you run several websites, you have to pay more.<\/p>","protected":false},"excerpt":{"rendered":"<p>How do I change the mail dispatch from WordPress to SMTP dispatch?<\/p>\n","protected":false},"author":1,"featured_media":3230,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[885],"tags":[898],"class_list":["post-4769","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-en","tag-wordpress-en"],"_links":{"self":[{"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/posts\/4769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/comments?post=4769"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/posts\/4769\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/media\/3230"}],"wp:attachment":[{"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/media?parent=4769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/categories?post=4769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi.de\/en\/index.php\/wp-json\/wp\/v2\/tags?post=4769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}