{"id":34512,"date":"2023-08-08T23:23:38","date_gmt":"2023-08-08T23:23:38","guid":{"rendered":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-gmail-as-an-smtp-service-in-wordpress\/"},"modified":"2025-04-29T04:16:52","modified_gmt":"2025-04-29T04:16:52","slug":"how-to-use-gmail-as-an-smtp-service-in-wordpress","status":"publish","type":"knowledgebase","link":"https:\/\/www.wpstaq.com\/sg\/knowledgebase\/how-to-use-gmail-as-an-smtp-service-in-wordpress\/","title":{"rendered":"How to use Gmail as an SMTP service in WordPress"},"content":{"rendered":"<p>Email deliverability is crucial for your WordPress website, especially if you&#8217;re running an e-commerce store, a membership site, or any website that needs reliable email delivery. Gmail is one of the email services that you can use to send emails from your WordPress website using SMTP (Simple Mail Transfer Protocol). Here&#8217;s how to set up Gmail as an SMTP service in WordPress using the WP Mail SMTP plugin and creating an App Password in Gmail:<\/p>\n<h2>Step 1: Install WP Mail SMTP Plugin<\/h2>\n<ol>\n<li>From your WordPress dashboard, go to &#8220;Plugins&#8221; and click on &#8220;Add New&#8221;.<\/li>\n<li>In the search bar, type &#8220;WP Mail SMTP&#8221; and press enter.<\/li>\n<li>Look for the &#8220;WP Mail SMTP&#8221; plugin (by WPForms) and click on &#8220;Install Now&#8221;, then &#8220;Activate&#8221;.<\/li>\n<\/ol>\n<h2>Step 2: Retrieve App Password from Google<\/h2>\n<p>Unfortunately, using your gmail email and password will not work. You will need to generate an App Password from Google. Below are the steps on how to do this:<\/p>\n<ol>\n<li>Go to your\u00a0<a href=\"https:\/\/myaccount.google.com\/\" target=\"_blank\" rel=\"noopener\">Google Account<\/a>.<\/li>\n<li>Select\u00a0<strong>Security.<\/strong><\/li>\n<li>Under &#8220;Signing in to Google,&#8221; click <strong>2-Step Verification<\/strong>.<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/google-account.png\" \/><\/p>\n<ol>\n<li>\n<ol>\n<li>At the bottom of the page, select\u00a0<strong>App passwords<\/strong>.<\/li>\n<li>Enter a name that helps you remember where you\u2019ll use the app password.<\/li>\n<li>Select\u00a0<strong>Generate<\/strong>.<\/li>\n<li>To enter the app password, follow the instructions on your screen. The app password is the 16-character code that generates on your device.<\/li>\n<li>Select\u00a0<strong>Done<\/strong>.<\/li>\n<\/ol>\n<p>If you\u2019ve set up 2-Step Verification but can\u2019t find the option to add an app password, it might be because:<\/p>\n<ul>\n<li>Your Google Account has 2-Step Verification\u00a0<a href=\"https:\/\/support.google.com\/accounts\/answer\/6103523\" rel=\"noopener\">set up only for security keys<\/a>.<\/li>\n<li>You\u2019re logged into a work, school, or another organization account.<\/li>\n<li>Your Google Account has\u00a0<a href=\"https:\/\/support.google.com\/accounts\/answer\/7539956\" rel=\"noopener\">Advanced Protection<\/a>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2>Step 3: Configure WP Mail SMTP Plugin inside Staq<\/h2>\n<ol>\n<li>Inside the site&#8217;s Staq Panel, click\u00a0<strong>WP Mail SMTP<\/strong>:<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-37525\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/08\/Staq-Pane-SMTP-1.png\" alt=\"\" width=\"1672\" height=\"681\" srcset=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/08\/Staq-Pane-SMTP-1.png 1672w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/08\/Staq-Pane-SMTP-1-300x122.png 300w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/08\/Staq-Pane-SMTP-1-1024x417.png 1024w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/08\/Staq-Pane-SMTP-1-768x313.png 768w, https:\/\/www.wpstaq.com\/wp-content\/uploads\/2024\/08\/Staq-Pane-SMTP-1-1536x626.png 1536w\" sizes=\"auto, (max-width: 1672px) 100vw, 1672px\" \/><\/p>\n<p>Enter the following details:<\/p>\n<p><strong>Host<\/strong>: smtp.gmail.com<\/p>\n<p><strong>Encrytion<\/strong>: SSL<\/p>\n<p><strong>Port<\/strong>: 465<\/p>\n<p><strong>Username<\/strong>: your gmail email address<\/p>\n<p><strong>Password<\/strong>: password from App Password (see Step 2, above)<\/p>\n<p><strong>Check<\/strong>:<\/p>\n<ul>\n<li>Use SMTP authentication<\/li>\n<li>Auto-enable TLS encryption<\/li>\n<\/ul>\n<p><strong>From email<\/strong>: your gmail email address<\/p>\n<p><strong>From Name<\/strong>: Your Personal or Business Name<\/p>\n<p><strong>Check<\/strong>:<\/p>\n<ul>\n<li>Force from email<\/li>\n<li>Force from name<\/li>\n<\/ul>\n<p>It should look something like this:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/gmail-details.png\" \/><\/p>\n","protected":false},"featured_media":34530,"parent":0,"template":"","class_list":["post-34512","knowledgebase","type-knowledgebase","status-publish","has-post-thumbnail","hentry","categories-smtp"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to use Gmail as an SMTP service in WordPress - Managed Hosting Platform for WordPress<\/title>\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.wpstaq.com\/knowledgebase\/how-to-use-gmail-as-an-smtp-service-in-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use Gmail as an SMTP service in WordPress - Managed Hosting Platform for WordPress\" \/>\n<meta property=\"og:description\" content=\"Email deliverability is crucial for your WordPress website, especially if you&#8217;re running an e-commerce store, a membership site, or any website that needs reliable email delivery. Gmail is one of the email services that you can use to send emails from your WordPress website using SMTP (Simple Mail Transfer Protocol). Here&#8217;s how to set up&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-gmail-as-an-smtp-service-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Managed Hosting Platform for WordPress\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/staqhosting\/\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-29T04:16:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/Smtp-Mail-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-gmail-as-an-smtp-service-in-wordpress\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-gmail-as-an-smtp-service-in-wordpress\\\/\",\"name\":\"How to use Gmail as an SMTP service in WordPress - Managed Hosting Platform for WordPress\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-gmail-as-an-smtp-service-in-wordpress\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-gmail-as-an-smtp-service-in-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/Smtp-Mail-1.png\",\"datePublished\":\"2023-08-08T23:23:38+00:00\",\"dateModified\":\"2025-04-29T04:16:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-gmail-as-an-smtp-service-in-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"en-sg\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-gmail-as-an-smtp-service-in-wordpress\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-sg\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-gmail-as-an-smtp-service-in-wordpress\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/Smtp-Mail-1.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/Smtp-Mail-1.png\",\"width\":1000,\"height\":500},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/knowledgebase\\\/how-to-use-gmail-as-an-smtp-service-in-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wpstaq.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to use Gmail as an SMTP service in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#website\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"name\":\"Managed Hosting Platform for WordPress\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wpstaq.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-sg\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#organization\",\"name\":\"Staq\",\"alternateName\":\"WPStaq\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-sg\",\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"contentUrl\":\"https:\\\/\\\/www.wpstaq.com\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/cropped-LogoNoText.png\",\"width\":512,\"height\":512,\"caption\":\"Staq\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wpstaq.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/staqhosting\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wpstaq\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use Gmail as an SMTP service in WordPress - Managed Hosting Platform for WordPress","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.wpstaq.com\/knowledgebase\/how-to-use-gmail-as-an-smtp-service-in-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"How to use Gmail as an SMTP service in WordPress - Managed Hosting Platform for WordPress","og_description":"Email deliverability is crucial for your WordPress website, especially if you&#8217;re running an e-commerce store, a membership site, or any website that needs reliable email delivery. Gmail is one of the email services that you can use to send emails from your WordPress website using SMTP (Simple Mail Transfer Protocol). Here&#8217;s how to set up&hellip;","og_url":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-gmail-as-an-smtp-service-in-wordpress\/","og_site_name":"Managed Hosting Platform for WordPress","article_publisher":"https:\/\/www.facebook.com\/staqhosting\/","article_modified_time":"2025-04-29T04:16:52+00:00","og_image":[{"width":1000,"height":500,"url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/Smtp-Mail-1.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-gmail-as-an-smtp-service-in-wordpress\/","url":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-gmail-as-an-smtp-service-in-wordpress\/","name":"How to use Gmail as an SMTP service in WordPress - Managed Hosting Platform for WordPress","isPartOf":{"@id":"https:\/\/www.wpstaq.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-gmail-as-an-smtp-service-in-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-gmail-as-an-smtp-service-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/Smtp-Mail-1.png","datePublished":"2023-08-08T23:23:38+00:00","dateModified":"2025-04-29T04:16:52+00:00","breadcrumb":{"@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-gmail-as-an-smtp-service-in-wordpress\/#breadcrumb"},"inLanguage":"en-sg","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-gmail-as-an-smtp-service-in-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-sg","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-gmail-as-an-smtp-service-in-wordpress\/#primaryimage","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/Smtp-Mail-1.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/08\/Smtp-Mail-1.png","width":1000,"height":500},{"@type":"BreadcrumbList","@id":"https:\/\/www.wpstaq.com\/knowledgebase\/how-to-use-gmail-as-an-smtp-service-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wpstaq.com\/"},{"@type":"ListItem","position":2,"name":"How to use Gmail as an SMTP service in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/www.wpstaq.com\/#website","url":"https:\/\/www.wpstaq.com\/","name":"Managed Hosting Platform for WordPress","description":"","publisher":{"@id":"https:\/\/www.wpstaq.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wpstaq.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-sg"},{"@type":"Organization","@id":"https:\/\/www.wpstaq.com\/#organization","name":"Staq","alternateName":"WPStaq","url":"https:\/\/www.wpstaq.com\/","logo":{"@type":"ImageObject","inLanguage":"en-sg","@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","contentUrl":"https:\/\/www.wpstaq.com\/wp-content\/uploads\/2023\/05\/cropped-LogoNoText.png","width":512,"height":512,"caption":"Staq"},"image":{"@id":"https:\/\/www.wpstaq.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/staqhosting\/","https:\/\/www.linkedin.com\/company\/wpstaq"]}]}},"_links":{"self":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/knowledgebase\/34512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/types\/knowledgebase"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/media\/34530"}],"wp:attachment":[{"href":"https:\/\/www.wpstaq.com\/sg\/wp-json\/wp\/v2\/media?parent=34512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}