{"id":8000,"date":"2020-07-25T12:37:50","date_gmt":"2020-07-25T12:37:50","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=8000"},"modified":"2022-02-16T11:33:43","modified_gmt":"2022-02-16T11:33:43","slug":"setup-smtp-connection-in-moodle","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/","title":{"rendered":"How to Setup an SMTP Connection in Moodle?"},"content":{"rendered":"<p>When you send messages from Moodle, they can go via either PHP mail function or SMTP server connection.<\/p>\n<p>Sometimes, the PHP mail function may get disabled on the server to secure your website from spam emails via compromised websites. To resolve this issue, you can configure the email to connect to an SMTP server. The SMTP server will connect with login details to authenticate the sending email address. Due to this the receiving email address server will be able to accept the email as authenticated. Some email servers don\u2019t enable unauthenticated emails to go via their server and therefore, SMTP connection is good.<\/p>\n<h3>Steps to Configure SMTP Settings in Moodle<\/h3>\n<p>Log into your Moodle dashboard.<\/p>\n<p>In the Settings section, go to <strong>Site administration -&gt; Server -&gt; Email -&gt; Outgoing mail configuration<\/strong>.<\/p>\n<p><a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/siteadmin-server-email-outgoing.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13572\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/siteadmin-server-email-outgoing.png\" alt=\"siteadmin-server-email-outgoing\" width=\"880\" height=\"712\" srcset=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/siteadmin-server-email-outgoing.png 880w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/siteadmin-server-email-outgoing-300x243.png 300w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/siteadmin-server-email-outgoing-768x621.png 768w\" sizes=\"auto, (max-width: 880px) 100vw, 880px\" \/><\/a><\/p>\n<p>Go to the <strong>Outgoing mail configuration\u00a0<\/strong>page and configure <strong>SMTP<\/strong> settings. Moodle uses the PHP mail function by default to send emails. If the administrator wants to send the email to a specific SMTP server such as <strong>Yahoo<\/strong> or <strong>Gmail<\/strong>, you can adjust the SMTP configuration settings to enable the use of a different server.<\/p>\n<p><a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/smtp-settings.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13573\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/smtp-settings.png\" alt=\"smtp-settings\" width=\"419\" height=\"1024\" srcset=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/smtp-settings.png 419w, https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/smtp-settings-123x300.png 123w\" sizes=\"auto, (max-width: 419px) 100vw, 419px\" \/><\/a><\/p>\n<p>In this post, we will use a Gmail email address for the SMTP settings. You need to configure the below email fields for the mail to work. Check below the example of a generic setup of Gmail SMTP:<\/p>\n\n<table id=\"tablepress-27\" class=\"tablepress tablepress-id-27\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">SMTP Settings<\/th><th class=\"column-2\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">SMTP hosts\t<\/td><td class=\"column-2\">The SMTP host is the server to which the email address gets connected. <\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">SMTP security<\/td><td class=\"column-2\">SMTP security will decide whether to encrypt the outgoing email data or not. The SSL setting must be exactly similar to the connection used for the SMTP Host name.<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">SMTP username<\/td><td class=\"column-2\">It is the full email address for the email account. Most email service providers will need the complete email address for the username.<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">SMTP password<\/td><td class=\"column-2\">It is the password for the specific email address that is you are setting up.<\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\">SMTP session limit<\/td><td class=\"column-2\">It helps to prevent spam coming from the same session on the server. If you limit to 1, you will need to create a new session in order for an email to be set.<\/td>\n<\/tr>\n<tr class=\"row-7\">\n\t<td class=\"column-1\">No-reply address<\/td><td class=\"column-2\">It displays in the return email address. It prevents the email address from being replied to by the recipient.<\/td>\n<\/tr>\n<tr class=\"row-8\">\n\t<td class=\"column-1\">Character set<\/td><td class=\"column-2\">It enables you to change the Character set to UTF-8, EUC-JP, GB18030, GB2312, ISO-2022-JP, ISO-8859-1, or SHIFT-JIS.<\/td>\n<\/tr>\n<tr class=\"row-9\">\n\t<td class=\"column-1\">Allow user to select character set<\/td><td class=\"column-2\">It allows users to change the Character set.<\/td>\n<\/tr>\n<tr class=\"row-10\">\n\t<td class=\"column-1\">Newline characters in mail\t<\/td><td class=\"column-2\">It sets the character type used for Newline characters.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-27 from cache -->\n<p>After you fill the correct information, click on <strong>Save changes<\/strong>. Now the messages that you send via Moodle will get delivered to the Gmail server as an authenticated user.<\/p>\n<p>In this way, you can setup an SMTP connection in Moodle.<\/p>\n<h3>Also Read<\/h3>\n<p><a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/modifying-site-administrators-in-moodle\/\" target=\"_blank\" rel=\"noopener\"><strong>Modifying Site Administrators in the User Permissions Section of Moodle<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you send messages from Moodle, they can go via either PHP mail function or SMTP server connection. Sometimes, the PHP mail function may get disabled on the server to secure your website from spam emails via compromised websites. To resolve this issue, you can configure the email to connect to an SMTP server. The [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[1528,617,1526,1527],"class_list":["post-8000","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-moodle-hosting","tag-email-in-moodle","tag-moodle","tag-smtp-connection-moodle","tag-smtp-settings-moodle"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Setup an SMTP Connection in Moodle?<\/title>\n<meta name=\"description\" content=\"You can setup the SMTP connection in Moodle so that the receiving email address server will be able to accept the email as authenticated\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Setup an SMTP Connection in Moodle?\" \/>\n<meta property=\"og:description\" content=\"You can setup the SMTP connection in Moodle so that the receiving email address server will be able to accept the email as authenticated\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-25T12:37:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-16T11:33:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/siteadmin-server-email-outgoing.png\" \/>\n<meta name=\"author\" content=\"Pallavi Godse\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pallavi Godse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/\",\"name\":\"How to Setup an SMTP Connection in Moodle?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/siteadmin-server-email-outgoing.png\",\"datePublished\":\"2020-07-25T12:37:50+00:00\",\"dateModified\":\"2022-02-16T11:33:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"description\":\"You can setup the SMTP connection in Moodle so that the receiving email address server will be able to accept the email as authenticated\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/siteadmin-server-email-outgoing.png\",\"contentUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/siteadmin-server-email-outgoing.png\",\"width\":880,\"height\":712,\"caption\":\"siteadmin-server-email-outgoing\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Setup an SMTP Connection in Moodle?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\",\"name\":\"Pallavi Godse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"caption\":\"Pallavi Godse\"},\"description\":\"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Setup an SMTP Connection in Moodle?","description":"You can setup the SMTP connection in Moodle so that the receiving email address server will be able to accept the email as authenticated","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/","og_locale":"en_GB","og_type":"article","og_title":"How to Setup an SMTP Connection in Moodle?","og_description":"You can setup the SMTP connection in Moodle so that the receiving email address server will be able to accept the email as authenticated","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2020-07-25T12:37:50+00:00","article_modified_time":"2022-02-16T11:33:43+00:00","og_image":[{"url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/siteadmin-server-email-outgoing.png","type":"","width":"","height":""}],"author":"Pallavi Godse","twitter_misc":{"Written by":"Pallavi Godse","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/","name":"How to Setup an SMTP Connection in Moodle?","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/siteadmin-server-email-outgoing.png","datePublished":"2020-07-25T12:37:50+00:00","dateModified":"2022-02-16T11:33:43+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"description":"You can setup the SMTP connection in Moodle so that the receiving email address server will be able to accept the email as authenticated","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/#primaryimage","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/siteadmin-server-email-outgoing.png","contentUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2020\/07\/siteadmin-server-email-outgoing.png","width":880,"height":712,"caption":"siteadmin-server-email-outgoing"},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/setup-smtp-connection-in-moodle\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Setup an SMTP Connection in Moodle?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945","name":"Pallavi Godse","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","caption":"Pallavi Godse"},"description":"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/"}]}},"views":1070,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/8000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=8000"}],"version-history":[{"count":4,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/8000\/revisions"}],"predecessor-version":[{"id":13574,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/8000\/revisions\/13574"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=8000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=8000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=8000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}