{"id":24336,"date":"2022-02-02T14:30:23","date_gmt":"2022-02-02T14:30:23","guid":{"rendered":"https:\/\/1-grid.com\/knowledge\/smtp-send-mail-scripts-for-windows-plesk\/"},"modified":"2023-10-19T13:03:06","modified_gmt":"2023-10-19T13:03:06","slug":"smtp-send-mail-scripts-for-windows-plesk","status":"publish","type":"ht_kb","link":"https:\/\/1grid.co.za\/knowledge\/smtp-send-mail-scripts-for-windows-plesk\/","title":{"rendered":"SMTP Send Mail Scripts for Windows Plesk"},"content":{"rendered":"<p>This article provides you with information regarding mail scripts \u00a0via Plesk.<\/p>\n<p>Unlike the cPanel control panel sending mails through \u201clocalhost\u201d is disabled on windows Plesk. You would need to use an existing email account or<a href=\"https:\/\/support.1-grid.com\/support\/solutions\/articles\/33000243761-plesk-how-to-create-email-accounts\" target=\"_blank\" rel=\"noopener noreferrer\">\u00a0create a new<\/a>\u00a0email account through the Plesk control panel for authentication in their send mail scripts.<\/p>\n<p><strong>Step 1<\/strong>\u00a0&#8211; \u00a0Upload the PHP mailer script attached to this article to Plesk.<\/p>\n<ul>\n<li>Once uploaded extract and rename the folder to PHPMailer.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"fr-fic fr-dib fr-bordered fr-shadow inline-image aligncenter\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33047550679\/original\/TD04MBuH8fXZIjHjOHBnfa8cyrTImDrmKQ.png?1601887975\" width=\"753\" height=\"431\" data-id=\"33047550579\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step 2<\/strong> &#8211; Open the file that you want to use to send your e-mail (this may be a contact.php file for example if a contact form).<\/p>\n<p dir=\"ltr\">Now within this file go ahead and add the following code:<\/p>\n<p><strong dir=\"ltr\"><strong>Example of PHP Mail Script<\/strong>\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong dir=\"ltr\"><img decoding=\"async\" class=\"fr-fic fr-fil fr-dib inline-image aligncenter\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33078866667\/original\/yM3yPuoDQGoEs7hrk8QVjepDwlTMGLdhUg.png?1654505501\" data-attachment=\"[object Object]\" data-id=\"33078866667\" \/><\/strong><\/p>\n<p dir=\"ltr\">\n<p dir=\"ltr\"><strong dir=\"ltr\"><strong>Example of and ASP Mail Script<\/strong>\u00a0<\/strong><\/p>\n<p dir=\"ltr\">\n<p dir=\"ltr\">\n<p dir=\"ltr\"><strong dir=\"ltr\"><img loading=\"lazy\" decoding=\"async\" class=\"fr-fic fr-fil fr-dib inline-image aligncenter\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33078866713\/original\/8PGcd2LN9pT5DmZ-3MEM4MgjJ_FcOMMR8w.png?1654505561\" width=\"605\" height=\"422\" data-attachment=\"[object Object]\" data-id=\"33078866713\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article provides you with information regarding mail scripts \u00a0via Plesk. Unlike the cPanel control panel sending mails through \u201clocalhost\u201d is disabled on windows Plesk. You would need to use an existing email account or\u00a0create a new\u00a0email account through the Plesk control panel for authentication in their send mail scripts&#8230;.<\/p>\n","protected":false},"author":21,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[1193],"ht-kb-tag":[470,480,747,884,894,908,928],"class_list":["post-24336","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-email-setup-config","ht_kb_tag-hosting","ht_kb_tag-how-to","ht_kb_tag-plesk","ht_kb_tag-script","ht_kb_tag-send-mail","ht_kb_tag-setup","ht_kb_tag-smtp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>SMTP Send Mail Scripts for Windows Plesk - 1-grid Knowledge Base<\/title>\n<meta name=\"description\" content=\"Want to send mail scripts via SMTP in Windows Plesk? Our step-by-step guide in the 1-grid Knowledge Base will walk you through it.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/1grid.co.za\/knowledge\/smtp-send-mail-scripts-for-windows-plesk\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SMTP Send Mail Scripts for Windows Plesk - 1-grid Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"Want to send mail scripts via SMTP in Windows Plesk? Our step-by-step guide in the 1-grid Knowledge Base will walk you through it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/1grid.co.za\/knowledge\/smtp-send-mail-scripts-for-windows-plesk\/\" \/>\n<meta property=\"og:site_name\" content=\"1-grid Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/1grid.co.za\/\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-19T13:03:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33047550679\/original\/TD04MBuH8fXZIjHjOHBnfa8cyrTImDrmKQ.png?1601887975\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@1grid_hosting\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/smtp-send-mail-scripts-for-windows-plesk\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/smtp-send-mail-scripts-for-windows-plesk\/\",\"name\":\"SMTP Send Mail Scripts for Windows Plesk - 1-grid Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\"},\"datePublished\":\"2022-02-02T14:30:23+00:00\",\"dateModified\":\"2023-10-19T13:03:06+00:00\",\"description\":\"Want to send mail scripts via SMTP in Windows Plesk? Our step-by-step guide in the 1-grid Knowledge Base will walk you through it.\",\"breadcrumb\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/smtp-send-mail-scripts-for-windows-plesk\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/1grid.co.za\/knowledge\/smtp-send-mail-scripts-for-windows-plesk\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/smtp-send-mail-scripts-for-windows-plesk\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/1grid.co.za\/knowledge\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SMTP Send Mail Scripts for Windows Plesk\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"contentUrl\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"width\":100,\"height\":100,\"caption\":\"1-Grid Domain Hosting Knowledge Base\"},\"image\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/1grid.co.za\/\",\"https:\/\/twitter.com\/1grid_hosting\",\"https:\/\/www.instagram.com\/1grid_hosting\/\",\"https:\/\/za.linkedin.com\/company\/1-grid\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SMTP Send Mail Scripts for Windows Plesk - 1-grid Knowledge Base","description":"Want to send mail scripts via SMTP in Windows Plesk? Our step-by-step guide in the 1-grid Knowledge Base will walk you through it.","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:\/\/1grid.co.za\/knowledge\/smtp-send-mail-scripts-for-windows-plesk\/","og_locale":"en_US","og_type":"article","og_title":"SMTP Send Mail Scripts for Windows Plesk - 1-grid Knowledge Base","og_description":"Want to send mail scripts via SMTP in Windows Plesk? Our step-by-step guide in the 1-grid Knowledge Base will walk you through it.","og_url":"https:\/\/1grid.co.za\/knowledge\/smtp-send-mail-scripts-for-windows-plesk\/","og_site_name":"1-grid Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/1grid.co.za\/","article_modified_time":"2023-10-19T13:03:06+00:00","og_image":[{"url":"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/33047550679\/original\/TD04MBuH8fXZIjHjOHBnfa8cyrTImDrmKQ.png?1601887975"}],"twitter_card":"summary_large_image","twitter_site":"@1grid_hosting","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/1grid.co.za\/knowledge\/smtp-send-mail-scripts-for-windows-plesk\/","url":"https:\/\/1grid.co.za\/knowledge\/smtp-send-mail-scripts-for-windows-plesk\/","name":"SMTP Send Mail Scripts for Windows Plesk - 1-grid Knowledge Base","isPartOf":{"@id":"https:\/\/1grid.co.za\/knowledge\/#website"},"datePublished":"2022-02-02T14:30:23+00:00","dateModified":"2023-10-19T13:03:06+00:00","description":"Want to send mail scripts via SMTP in Windows Plesk? Our step-by-step guide in the 1-grid Knowledge Base will walk you through it.","breadcrumb":{"@id":"https:\/\/1grid.co.za\/knowledge\/smtp-send-mail-scripts-for-windows-plesk\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/1grid.co.za\/knowledge\/smtp-send-mail-scripts-for-windows-plesk\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/1grid.co.za\/knowledge\/smtp-send-mail-scripts-for-windows-plesk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/1grid.co.za\/knowledge\/"},{"@type":"ListItem","position":2,"name":"SMTP Send Mail Scripts for Windows Plesk"}]},{"@type":"WebSite","@id":"https:\/\/1grid.co.za\/knowledge\/#website","url":"https:\/\/1grid.co.za\/knowledge\/","name":"1-Grid Domain Hosting Knowledge Base","description":"","publisher":{"@id":"https:\/\/1grid.co.za\/knowledge\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/1grid.co.za\/knowledge\/#organization","name":"1-Grid Domain Hosting Knowledge Base","url":"https:\/\/1grid.co.za\/knowledge\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/","url":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","contentUrl":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","width":100,"height":100,"caption":"1-Grid Domain Hosting Knowledge Base"},"image":{"@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/1grid.co.za\/","https:\/\/twitter.com\/1grid_hosting","https:\/\/www.instagram.com\/1grid_hosting\/","https:\/\/za.linkedin.com\/company\/1-grid"]}]}},"_links":{"self":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/24336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/comments?post=24336"}],"version-history":[{"count":2,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/24336\/revisions"}],"predecessor-version":[{"id":33021,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/24336\/revisions\/33021"}],"wp:attachment":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/media?parent=24336"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-category?post=24336"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-tag?post=24336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}