{"id":45921,"date":"2024-07-08T12:17:08","date_gmt":"2024-07-08T12:17:08","guid":{"rendered":"https:\/\/accuweb.cloud\/resource\/?post_type=faq&#038;p=45921"},"modified":"2026-01-02T09:54:15","modified_gmt":"2026-01-02T09:54:15","slug":"external-smtp-for-email-sending","status":"publish","type":"faq","link":"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending","title":{"rendered":"External SMTP-(PHPMailer) for Emails Sending"},"content":{"rendered":"<h1 class=\"ack-h1\">External SMTP for email sending<\/h1>\n<p>Sending emails through SMTP (Simple Mail Transfer Protocol) is a common way to send emails over the Internet. It works by exchanging commands and data securely over a dedicated connection. This tutorial will guide you through setting up email sending via SMTP using PaaS PHP hosting.<\/p>\n<h2 class=\"ack-h2\">PHPMailer for Email Sending<\/h2>\n<p>PHPMailer is a classic, full-featured email-sending class for PHP, compatible with PHP version 5.0 and higher. Let&#8217;s examine how to integrate it into the platform.<\/p>\n<p><strong>Step 1.<\/strong> Log in to the platform dashboard.<\/p>\n<p><strong>Step 2.<\/strong> Create your PHP environment.<\/p>\n<ul class=\"ack-ul\">\n<li>Press the <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/the-definitive-guide-for-accuweb-cloud-dashboard\/\" target=\"_blank\" rel=\"noopener\">&#8220;Create environment&#8221;<\/a> button.<\/li>\n<li>Navigate to the <strong>PHP tab<\/strong> in the dialog box that appears.<\/li>\n<\/ul>\n<p><strong>Step 3.<\/strong> Configure the environment.<\/p>\n<ul class=\"ack-ul\">\n<li>Select the Apache application server.<\/li>\n<li>Specify the cloudlet limits for the server.<\/li>\n<li>Enable the <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/attach-public-ip\/\" target=\"_blank\" rel=\"noopener\">Public IP<\/a> feature for the Apache node.<\/li>\n<li>Name your new environment (for example, &#8220;phpmailer&#8221;) and click <strong>&#8220;Create.&#8221;<\/strong><\/li>\n<\/ul>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Create-Environment-01.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45923 size-full\" title=\"Create Environment\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Create-Environment-01.jpg\" alt=\"Create Environment\" width=\"1063\" height=\"681\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Create-Environment-01.jpg 1063w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Create-Environment-01-300x192.jpg 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Create-Environment-01-1024x656.jpg 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Create-Environment-01-768x492.jpg 768w\" sizes=\"(max-width: 1063px) 100vw, 1063px\" \/><\/a><\/p>\n<p><strong>Step 4.<\/strong> <a class=\"ack-link-color\" href=\"https:\/\/github.com\/PHPMailer\/PHPMailer\" target=\"_blank\" rel=\"noopener\">Download the PHPMailer script<\/a> from GitHub.<\/p>\n<p><strong>Step 5.<\/strong> Upload the script to the platform.<\/p>\n<ul class=\"ack-ul\">\n<li>Navigate to the <strong>Deployment Manager.<\/strong><\/li>\n<li><strong>Browse<\/strong> the package and deploy it to the environment by clicking the <strong>Deploy<\/strong> button.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Configure-Server.png\"><img decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45925 size-full\" title=\"Deployment manager\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Configure-Server.png\" alt=\"Deployment manager\" width=\"669\" height=\"364\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Configure-Server.png 669w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Configure-Server-300x163.png 300w\" sizes=\"(max-width: 669px) 100vw, 669px\" \/><\/a><\/p>\n<p><strong>Step 6.<\/strong> Configure the application server.<\/p>\n<ul class=\"ack-ul\">\n<li>Click the<a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/configuration-of-file-manager\/\" target=\"_blank\" rel=\"noopener\">&#8220;Config&#8221;<\/a> button next to your application server.<\/li>\n<li>Within the <strong>ROOT<\/strong> directory, locate the <strong>index.php<\/strong> file. If it&#8217;s not already present, create a new file named index.php<\/li>\n<\/ul>\n<p>CODE:<\/p>\n<div class=\"article-space\"><\/div>\n<pre><code class=\"language-javascript\">\r\n&lt;?php\r\n\/\/ Include PHPMailer classes\r\nrequire 'src\/PHPMailer.php';\r\nrequire 'src\/SMTP.php';\r\nrequire 'src\/Exception.php';\r\n\/\/ Import PHPMailer classes into the global namespace\r\nuse PHPMailer\\PHPMailer\\PHPMailer;\r\nuse PHPMailer\\PHPMailer\\SMTP;\r\nuse PHPMailer\\PHPMailer\\Exception;\r\n\/\/ Create a new PHPMailer instance\r\n$mail = new PHPMailer(true); \/\/ Passing `true` enables exceptions\r\ntry {\r\n\/\/ Server settings (you may need to modify these)\r\n$mail-&gt;isSMTP(); \/\/ Set mailer to use SMTP\r\n$mail-&gt;Host = 'mail.example.com'; \/\/ Specify main and backup SMTP servers\r\n\/\/ $mail-&gt;SMTPAuth = true; \/\/ Enable SMTP authentication\r\n\/\/ $mail-&gt;Username = 'your_smtp_username'; \/\/ SMTP username\r\n\/\/ $mail-&gt;Password = 'your_smtp_password'; \/\/ SMTP password\r\n\/\/ $mail-&gt;SMTPSecure = 'tls'; \/\/ Enable TLS encryption, `ssl` also accepted\r\n\/\/ $mail-&gt;Port = 587; \/\/ TCP port to connect to\r\n\/\/ Sender and recipient settings\r\n$mail-&gt;setFrom('from@example.com', 'Your Name');\r\n$mail-&gt;addAddress('to@example.com', 'Recipient Name'); \/\/ Add a recipient\r\n\/\/ $mail-&gt;addReplyTo('replyto@example.com', 'Reply To');\r\n\/\/ Content\r\n$mail-&gt;isHTML(true); \/\/ Set email format to HTML\r\n$mail-&gt;Subject = 'Subject of the email';\r\n$mail-&gt;Body = 'HTML message body';\r\n$mail-&gt;AltBody = 'Plain text message body';\r\n\/\/ Send email\r\n$mail-&gt;send();\r\necho 'Message has been sent';\r\n} catch (Exception $e) {\r\necho \"Message could not be sent. Mailer Error: {$mail-&gt;ErrorInfo}\";\r\n}\r\n?&gt;<\/code><\/pre>\n<div class=\"article-space\"><\/div>\n<div class=\"article-extra-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Configure-Server-01.png\"><img decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45928 size-full\" title=\"Configure Server\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Configure-Server-01.png\" alt=\"Configure Server\" width=\"1281\" height=\"472\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Configure-Server-01.png 1281w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Configure-Server-01-300x111.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Configure-Server-01-1024x377.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Configure-Server-01-768x283.png 768w\" sizes=\"(max-width: 1281px) 100vw, 1281px\" \/><\/a><\/p>\n<p><strong>Step 7.<\/strong> Specify all the necessary SMTP details in the <strong>index.php<\/strong> file to configure mailing via localhost or through a specific email account:<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Configure-Mail-Server.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45926 size-full\" title=\"Configure Mail Server\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Configure-Mail-Server.jpg\" alt=\"Configure Mail Server\" width=\"1424\" height=\"476\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Configure-Mail-Server.jpg 1424w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Configure-Mail-Server-300x100.jpg 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Configure-Mail-Server-1024x342.jpg 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Configure-Mail-Server-768x257.jpg 768w\" sizes=\"(max-width: 1424px) 100vw, 1424px\" \/><\/a><\/p>\n<p>You can use the following configuration as an example:<\/p>\n<ul class=\"ack-ul\">\n<li>host: ssl:\/\/smtp.gmail.com OR your email server host<\/li>\n<li>port: 465\/587 (SMTP port of your email provider)<\/li>\n<li>username: state the email account you would like to use<\/li>\n<li>password: state the password to the account you\u2019ve specified in the username line<\/li>\n<li>addreply and replyto: state the same email as in the username line (the one you are going to use for mailings)<\/li>\n<\/ul>\n<p>Please <strong>Save<\/strong> the modifications you&#8217;ve made. Then, by clicking the <strong>&#8220;Open in Browser&#8221;<\/strong> option adjacent to your environment, you can view the result, which should display the message <strong>&#8220;Message has been sent&#8221;<\/strong> upon successful execution.<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Message-has-Been-sent.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45930 size-full\" title=\"Message has Been sent\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Message-has-Been-sent.png\" alt=\"Message has Been sent\" width=\"741\" height=\"410\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Message-has-Been-sent.png 741w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Message-has-Been-sent-300x166.png 300w\" sizes=\"(max-width: 741px) 100vw, 741px\" \/><\/a><\/p>\n<p>In a few minutes, this email will appear in your <strong>inbox.<\/strong><\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/email-inbox.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45931 size-full\" title=\"email inbox\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/email-inbox.png\" alt=\"email inbox\" width=\"888\" height=\"549\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/email-inbox.png 888w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/email-inbox-300x185.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/email-inbox-768x475.png 768w\" sizes=\"(max-width: 888px) 100vw, 888px\" \/><\/a><\/p>\n<div class=\"article-extra-space\"><\/div>\n<div class=\"ack-formula\"><strong>Note:<\/strong> If you don\u2019t receive the email within a few minutes, please check your spam\/junk folder.<\/div>\n<div class=\"article-space\"><\/div>\n<p>This guide has equipped you with the knowledge to set up SMTP for sending emails using the PHPMailer function. You&#8217;ve learned how to configure your PHP environment, deploy PHPMailer, and customize your SMTP settings.<\/p>\n<div class=\"cta-btn-top-space ack-extra-image-space\">\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t<\/div>\n<div class=\"cta-btn-bottom-space\"><\/div>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","class_list":["post-45921","faq","type-faq","status-publish","hentry","faq_topics-development-tools","faq_topics-email-via-external-smtp","faq_topics-kb","faq_topics-mailings","faq_topics-product-documentation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.10 (Yoast SEO v24.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>External SMTP for Email Sending | accuweb.cloud guide<\/title>\n<meta name=\"description\" content=\"Learn how to configure SMTP for email sending using PHPMailer, ensuring secure and efficient email delivery.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"External SMTP-(PHPMailer) for Emails Sending\" \/>\n<meta property=\"og:description\" content=\"Learn how to configure SMTP for email sending using PHPMailer, ensuring secure and efficient email delivery.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending\" \/>\n<meta property=\"og:site_name\" content=\"AccuWeb Cloud\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-02T09:54:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Create-Environment-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1063\" \/>\n\t<meta property=\"og:image:height\" content=\"681\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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\":\"Article\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending#article\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending\"},\"author\":{\"name\":\"Jilesh Patadiya\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\"},\"headline\":\"External SMTP-(PHPMailer) for Emails Sending\",\"datePublished\":\"2024-07-08T12:17:08+00:00\",\"dateModified\":\"2026-01-02T09:54:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending\"},\"wordCount\":415,\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Create-Environment-01.jpg\",\"inLanguage\":\"en-US\"},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending\",\"url\":\"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending\",\"name\":\"External SMTP for Email Sending | accuweb.cloud guide\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending#primaryimage\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Create-Environment-01.jpg\",\"datePublished\":\"2024-07-08T12:17:08+00:00\",\"dateModified\":\"2026-01-02T09:54:15+00:00\",\"description\":\"Learn how to configure SMTP for email sending using PHPMailer, ensuring secure and efficient email delivery.\",\"breadcrumb\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending#primaryimage\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Create-Environment-01.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Create-Environment-01.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/accuweb.cloud\/resource\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"External SMTP-(PHPMailer) for Emails Sending\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"name\":\"AccuWeb Cloud\",\"description\":\"Cutting Edge Cloud Computing\",\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\",\"name\":\"AccuWeb.Cloud\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"width\":156,\"height\":87,\"caption\":\"AccuWeb.Cloud\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\",\"name\":\"Jilesh Patadiya\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"caption\":\"Jilesh Patadiya\"},\"description\":\"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.\",\"sameAs\":[\"https:\/\/accuweb.cloud\/resource\",\"https:\/\/www.facebook.com\/accuwebhosting\",\"https:\/\/www.instagram.com\/accuwebhosting\/\",\"https:\/\/www.linkedin.com\/company\/accuwebhosting\/\",\"https:\/\/x.com\/accuwebhosting\",\"https:\/\/www.youtube.com\/c\/Accuwebhosting\"],\"url\":\"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"External SMTP for Email Sending | accuweb.cloud guide","description":"Learn how to configure SMTP for email sending using PHPMailer, ensuring secure and efficient email delivery.","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:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending","og_locale":"en_US","og_type":"article","og_title":"External SMTP-(PHPMailer) for Emails Sending","og_description":"Learn how to configure SMTP for email sending using PHPMailer, ensuring secure and efficient email delivery.","og_url":"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending","og_site_name":"AccuWeb Cloud","article_modified_time":"2026-01-02T09:54:15+00:00","og_image":[{"width":1063,"height":681,"url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Create-Environment-01.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending#article","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending"},"author":{"name":"Jilesh Patadiya","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58"},"headline":"External SMTP-(PHPMailer) for Emails Sending","datePublished":"2024-07-08T12:17:08+00:00","dateModified":"2026-01-02T09:54:15+00:00","mainEntityOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending"},"wordCount":415,"publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Create-Environment-01.jpg","inLanguage":"en-US"},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending","url":"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending","name":"External SMTP for Email Sending | accuweb.cloud guide","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/#website"},"primaryImageOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending#primaryimage"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Create-Environment-01.jpg","datePublished":"2024-07-08T12:17:08+00:00","dateModified":"2026-01-02T09:54:15+00:00","description":"Learn how to configure SMTP for email sending using PHPMailer, ensuring secure and efficient email delivery.","breadcrumb":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending#primaryimage","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Create-Environment-01.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/Create-Environment-01.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/accuweb.cloud\/resource\/articles\/external-smtp-for-email-sending#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/accuweb.cloud\/resource\/"},{"@type":"ListItem","position":2,"name":"External SMTP-(PHPMailer) for Emails Sending"}]},{"@type":"WebSite","@id":"https:\/\/accuweb.cloud\/resource\/#website","url":"https:\/\/accuweb.cloud\/resource\/","name":"AccuWeb Cloud","description":"Cutting Edge Cloud Computing","publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/accuweb.cloud\/resource\/#organization","name":"AccuWeb.Cloud","url":"https:\/\/accuweb.cloud\/resource\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","width":156,"height":87,"caption":"AccuWeb.Cloud"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58","name":"Jilesh Patadiya","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","caption":"Jilesh Patadiya"},"description":"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.","sameAs":["https:\/\/accuweb.cloud\/resource","https:\/\/www.facebook.com\/accuwebhosting","https:\/\/www.instagram.com\/accuwebhosting\/","https:\/\/www.linkedin.com\/company\/accuwebhosting\/","https:\/\/x.com\/accuwebhosting","https:\/\/www.youtube.com\/c\/Accuwebhosting"],"url":"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin"}]}},"_links":{"self":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/45921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/comments?post=45921"}],"version-history":[{"count":5,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/45921\/revisions"}],"predecessor-version":[{"id":45938,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/45921\/revisions\/45938"}],"wp:attachment":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media?parent=45921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}