{"id":13367,"date":"2017-09-20T13:24:14","date_gmt":"2017-09-20T13:24:14","guid":{"rendered":"https:\/\/www.awardspace.com\/?page_id=13367"},"modified":"2024-10-17T10:08:44","modified_gmt":"2024-10-17T10:08:44","slug":"php-mail-function","status":"publish","type":"post","link":"https:\/\/www.awardspace.com\/kb\/php-mail-function\/","title":{"rendered":"How Do I Send an Email Message Using the PHP Mail() Function?"},"content":{"rendered":"<p>One of the most ubiquitous methods of communication nowadays is the sending and receiving of email messages. Unlike other forms of electronic communication, emails are very reliable and are universally accepted &#8211; when you send a message to someone, you know that they will be able to read it regardless of the operating system, email client, or mail provider they use. Due to these immense benefits, email has become the preferred method of communication for countless individuals and businesses around the world.<\/p>\n<p>Writing email messages using your favorite email program or your mail provider&#8217;s web app is probably second nature to you. But did you know that you can also send messages via scripts from your hosting space? In this tutorial, we will show you how you can send email messages via a PHP script.<\/p>\n<p>&nbsp;<\/p>\n<h2>How Can I Check Whether the PHP Mail() Function Is Enabled on My Account?<\/h2>\n<p>Before you attempt to send an email message using the PHP mail() function, you should make sure the PHP mail() function is actually enabled on the server. You can perform this check by running a small test script. Follow the steps below in order to create this script and execute it:<\/p>\n<ol>\n<li>Open the <a href=\"https:\/\/cp1.awardspace.net\/beta\/file-manager\/\">File Manager section of the Control Panel<\/a>. If prompted, log into your account.<\/li>\n<li>Open your <strong>domain name folder<\/strong>.<\/li>\n<li>Use the <strong>Create<\/strong> button to make a new file. Call the file something like <code>test.php<\/code>.<\/li>\n<li>Copy over the code below and <strong>save<\/strong> the file.<\/li>\n<\/ol>\n<pre><code> &lt;?php\r\n    if(function_exists('mail')) {\r\n        echo \"PHP mail() function is enabled\";\r\n    }\r\n    else {\r\n        echo \"PHP mail() function is not enabled\";\r\n    }\r\n ?&gt;\r\n<\/code><\/pre>\n<ol start=\"5\">\n<li>Now copy the path to the test script and run it in your web browser. The path should look something like <code><\/code>.<\/li>\n<\/ol>\n<p>If all goes well, you should see the message <em>PHP mail() function is enabled<\/em> as shown in the screenshot below:<\/p>\n<figure><a class=\"et_pb_lightbox_image\" title=\"The test script confirms that the PHP mail() function is enabled on the server.\" href=\"\/wp-content\/uploads\/2018\/03\/php-mail-function-1.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img alignnone\" src=\"\/wp-content\/uploads\/2018\/03\/php-mail-function-1.png\" alt=\"The test script confirms that the PHP mail() function is enabled on the server.\" \/><\/a><figcaption style=\"font-size: 80%; color: #515151;\">The test script confirms that the PHP mail() function is enabled on the server.<\/figcaption><\/figure>\n<p>If there is a problem, you will see a <em>PHP mail() function is not enabled<\/em> message. In the unlikely event that this happens, you should <a href=\"\/contacts\/support\/\">contact the 24\/7 Technical Support Team<\/a> so they can resolve any problems with the server.<\/p>\n<figure><a class=\"et_pb_lightbox_image\" title=\"The test script shows that the PHP mail() function is disabled which is likely due to a bad server configuration.\" href=\"\/wp-content\/uploads\/2018\/03\/php-mail-function-2.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img alignnone\" src=\"\/wp-content\/uploads\/2018\/03\/php-mail-function-2.png\" alt=\"The test script shows that the PHP mail() function is disabled which is likely due to a bad server configuration.\" \/><\/a><figcaption style=\"font-size: 80%; color: #515151;\">The test script shows that the PHP mail() function is disabled which is likely due to a bad server configuration.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h3>Are Free Accounts Allowed to Send Messages Using the PHP Mail() Function?<\/h3>\n<p>If you are using our <a href=\"https:\/\/www.awardspace.com\/free-hosting\/\">free hosting service<\/a>, you may be worried that this functionality will not be available to you. The good news is that even free hosting accounts are allowed to use the PHP mail() function. There are just two caveats that you need to keep in mind.<\/p>\n<p>First, to send an email message, you need to have an email account created in your hosting space. This email account will act as the sender. Email accounts can be created through the <a href=\"https:\/\/cp1.awardspace.net\/beta\/email-manager\/\">Email Accounts section of the Control Panel<\/a>. To have an email account, you need to <a href=\"\/domains\/\" target=\"_blank\" rel=\"noopener\">own a fully-qualified domain name<\/a> or <a href=\"https:\/\/cp1.awardspace.net\/beta\/domain-manager\/\">grab a free .DX.AM domain name from the Domain Manager<\/a>.<\/p>\n<p>The second caveat to note is that in order to prevent spammers from abusing our free service, we have limited the number of messages that can be sent to 31 messages in any given 31-day period. You can lift this restriction by <a href=\"\/web-hosting\/shared-hosting\/\">upgrading to one of the paid hosting packages<\/a> that we offer.<\/p>\n<p>&nbsp;<\/p>\n<h2>How Do I Send an Email Message Using the PHP Mail() Function?<\/h2>\n<p>Email messages can be sent via a PHP script by running it. Running a script is as simple as opening it in your web browser, just like a regular page on the web. Follow along as we show you how to create and run your first script that uses the PHP mail() function:<\/p>\n<ol>\n<li>Log in to the <a href=\"http:\/\/cp1.awardspace.net\/beta\/\">Hosting Control Panel<\/a>.<\/li>\n<li>If you don&#8217;t have an email account yet, create one in the <a href=\"https:\/\/cp1.awardspace.net\/beta\/email-manager\/#accounts\">Email Accounts section of the Control Panel<\/a>. <em>Not sure how to make an email account? Check our <a href=\"https:\/\/www.awardspace.com\/kb\/control-panel\/email-manager\/create-email-account\/\">guide on how to create an email account<\/a><\/em>.<\/li>\n<li>Navigate to the <a href=\"https:\/\/cp1.awardspace.net\/beta\/file-manager\/\">File Manager section of the Control Panel<\/a>.<\/li>\n<li>Double-click on your <strong>domain folder<\/strong> in order to open it.<\/li>\n<li>Use the <strong>Create<\/strong> button to make a new file. Call the file something like <code>mail-test.php<\/code>.<\/li>\n<li>Copy over the code below into the empty .PHP file you just created.<\/li>\n<\/ol>\n<pre><code>&lt;?php\r\n\r\n$awardspaceEmail = \"FROM\";\r\n$recipientEmail = \"TO\";\r\n\r\n$from = \"From: Mail Contact Form &lt;\" . $awardspaceEmail . \"&gt;\";\r\n$to = $recipientEmail;\r\n\r\n$subject = \"PHP mail() Test\";\r\n\r\n$body = \"This is a test message sent with the PHP mail function!\";\r\n\r\nif(mail($to,$subject,$body,$from)){\r\n    echo 'E-mail message sent!';\r\n} else {\r\n    echo 'E-mail delivery failure!';\r\n}\r\n\r\n?&gt;\r\n<\/code><\/pre>\n<ol start=\"7\">\n<li>You will now have to make two additions to the script. Near the beginning of the script, you will notice the following line of code: <code>$awardspaceEmail = \"FROM\";<\/code>. You need to delete the <code>FROM<\/code> text and in its place enter the email address that you created earlier in Step 2 using the Email Accounts section of the Control Panel. Similarly, the next line is <code>$recipientEmail = \"TO\";<\/code>. Here you need to remove the <code>TO<\/code> text and replace it with the email address where you would like to receive your test message.<\/li>\n<li>After updating the two fields mentioned in the above step, <strong>save<\/strong> your changes.<\/li>\n<li>Now copy the path to the mail test script and run it in your web browser. The path should look something like <code><\/code>.<\/li>\n<li>Once the script finishes loading, you should see the message <em>E-mail message sent!<\/em> printed on the screen if the message was sent successfully. If there&#8217;s a problem, you will see an <em>E-mail delivery failure!<\/em> instead. In case of an error, you can contact our <a href=\"\/contacts\/support\/\">24\/7 Technical Support Team<\/a> and they will assist you in resolving any issues that are present.<\/li>\n<li>Verify that your script has successfully sent the test message by checking your email inbox. You should receive a test message that looks like the one shown below:<\/li>\n<\/ol>\n<figure><a class=\"et_pb_lightbox_image\" title=\"The PHP mail() function test script has successfully sent a message and it has arrived in the recipient's inbox.\" href=\"\/wp-content\/uploads\/2018\/03\/php-mail-function-3.png\" data-featherlight=\"image\"> <img decoding=\"async\" class=\"size-full wp-image-15434 aw-border-img alignnone\" src=\"\/wp-content\/uploads\/2018\/03\/php-mail-function-3.png\" alt=\"The PHP mail() function test script has successfully sent a message and it has arrived in the recipient's inbox.\" \/><\/a><figcaption style=\"font-size: 80%; color: #515151;\">The PHP mail() function test script has successfully sent a message and it has arrived in the recipient&#8217;s inbox.<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h3>Is There a Limit to the Number of Messages I Can Send Using the PHP Mail() Function?<\/h3>\n<p>As previously mentioned, the <a href=\"\/free-hosting\/\">free hosting plan<\/a> allows you to send up to 31 messages for a 31-day period. Upgrading to one of our <a href=\"\/web-hosting\/shared-hosting\/\">paid shared hosting plans<\/a> significantly increases this limit. With a paid plan you can send up to 1000 messages per day. If you need to send even more messages, our <a href=\"\/web-hosting\/semi-dedicated-hosting\/\" target=\"_blank\" rel=\"noopener\">Semi-Dedicated hosting<\/a> enables you to send up to 2000 messages per day. Last, but certainly not least, <a href=\"\/web-hosting\/vps-cloud-hosting\/\">getting a Virtual Private Server (VPS) package<\/a> would allow you to send an unlimited number of messages. A VPS is only limited by his hardware and processing power as to the number of messages it can send.<\/p>\n<p><em>A word of warning: AwardSpace has a zero-tolerance policy when it comes to the sending of unsolicited email messages (SPAM). If you use our mail servers for such an activity, you risk having your hosting account permanently suspended without the option to get a refund.<\/em><\/p>\n<p>&nbsp;<\/p>\n<h3>How Do I Create a Contact Form for My Website?<\/h3>\n<p>Now that you are able to send messages via PHP scripts, you may have your sights set on implementing a full-blown contact form into your website. That&#8217;s actually surprisingly easy to do. We cover the whole process in our <a href=\"\/kb\/contact-form-sample\/\">guide on how to create a working contact form<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<h2>Conclusion<\/h2>\n<p>The ability to send email messages through your website enhances the experience your visitors have when they visit your site. Implementing a contact form, sending order confirmation messages, and emailing a password reset link to a member of your site who has misplaced their password can all make your website much more professional and appealing. And best of all &#8211; PHP allows you to automate these messages, so once you set up your site, it will just work with no extra effort required on your part.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the most ubiquitous methods of communication nowadays is the sending and receiving of email messages. Unlike other forms of electronic communication, emails are very reliable and are universally accepted &#8211; when you send a message to someone, you know that they will be able to read it regardless of the operating system, email [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":33819,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[53],"tags":[],"class_list":["post-13367","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mailing-scripts"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How Do I Send an Email Message Using the PHP Mail() Function?<\/title>\n<meta name=\"description\" content=\"In this tutorial, we are going to provide instructions on how to test the PHP mail function and how to send emails using a PHP script.\" \/>\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.awardspace.com\/kb\/php-mail-function\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How Do I Send an Email Message Using the PHP Mail() Function?\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we are going to provide instructions on how to test the PHP mail function and how to send emails using a PHP script.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.awardspace.com\/kb\/php-mail-function\/\" \/>\n<meta property=\"og:site_name\" content=\"AwardSpace.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/AwardSpace\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-09-20T13:24:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-17T10:08:44+00:00\" \/>\n<meta name=\"author\" content=\"ivailod\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@awspace\" \/>\n<meta name=\"twitter:site\" content=\"@awspace\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ivailod\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.awardspace.com\/kb\/php-mail-function\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/php-mail-function\/\"},\"author\":{\"name\":\"ivailod\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/ce135bfb9f8b0d51d047abe11d77b221\"},\"headline\":\"How Do I Send an Email Message Using the PHP Mail() Function?\",\"datePublished\":\"2017-09-20T13:24:14+00:00\",\"dateModified\":\"2024-10-17T10:08:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/php-mail-function\/\"},\"wordCount\":1245,\"publisher\":{\"@id\":\"https:\/\/www.awardspace.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/php-mail-function\/#primaryimage\"},\"thumbnailUrl\":\"\",\"articleSection\":[\"Mailing Scripts\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.awardspace.com\/kb\/php-mail-function\/\",\"url\":\"https:\/\/www.awardspace.com\/kb\/php-mail-function\/\",\"name\":\"How Do I Send an Email Message Using the PHP Mail() Function?\",\"isPartOf\":{\"@id\":\"https:\/\/www.awardspace.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/php-mail-function\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/php-mail-function\/#primaryimage\"},\"thumbnailUrl\":\"\",\"datePublished\":\"2017-09-20T13:24:14+00:00\",\"dateModified\":\"2024-10-17T10:08:44+00:00\",\"description\":\"In this tutorial, we are going to provide instructions on how to test the PHP mail function and how to send emails using a PHP script.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.awardspace.com\/kb\/php-mail-function\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.awardspace.com\/kb\/php-mail-function\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/kb\/php-mail-function\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.awardspace.com\/kb\/php-mail-function\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.awardspace.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledge Base\",\"item\":\"https:\/\/www.awardspace.com\/kb\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Email\",\"item\":\"https:\/\/www.awardspace.com\/kb\/email\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Mailing Scripts\",\"item\":\"https:\/\/www.awardspace.com\/kb\/email\/mailing-scripts\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"How Do I Send an Email Message Using the PHP Mail() Function?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.awardspace.com\/#website\",\"url\":\"https:\/\/www.awardspace.com\/\",\"name\":\"AwardSpace.com\",\"description\":\"Free Web Hosting with PHP, MySQL, Email Sending, No Ads\",\"publisher\":{\"@id\":\"https:\/\/www.awardspace.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.awardspace.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.awardspace.com\/#organization\",\"name\":\"AwardSpace.com\",\"url\":\"https:\/\/www.awardspace.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png\",\"contentUrl\":\"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png\",\"width\":1759,\"height\":176,\"caption\":\"AwardSpace.com\"},\"image\":{\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/AwardSpace\/\",\"https:\/\/x.com\/awspace\",\"https:\/\/www.instagram.com\/awardspace\/\",\"https:\/\/www.quora.com\/profile\/Award-Space\",\"https:\/\/www.linkedin.com\/company\/19214384\/\",\"https:\/\/www.reddit.com\/user\/AwardSpace\",\"https:\/\/www.pinterest.com\/awardspace\/\",\"https:\/\/www.youtube.com\/user\/AwardspaceWebHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/ce135bfb9f8b0d51d047abe11d77b221\",\"name\":\"ivailod\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.awardspace.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"ivailod\"},\"url\":\"https:\/\/www.awardspace.com\/author\/ivailod\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How Do I Send an Email Message Using the PHP Mail() Function?","description":"In this tutorial, we are going to provide instructions on how to test the PHP mail function and how to send emails using a PHP script.","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.awardspace.com\/kb\/php-mail-function\/","og_locale":"en_US","og_type":"article","og_title":"How Do I Send an Email Message Using the PHP Mail() Function?","og_description":"In this tutorial, we are going to provide instructions on how to test the PHP mail function and how to send emails using a PHP script.","og_url":"https:\/\/www.awardspace.com\/kb\/php-mail-function\/","og_site_name":"AwardSpace.com","article_publisher":"https:\/\/www.facebook.com\/AwardSpace\/","article_published_time":"2017-09-20T13:24:14+00:00","article_modified_time":"2024-10-17T10:08:44+00:00","author":"ivailod","twitter_card":"summary_large_image","twitter_creator":"@awspace","twitter_site":"@awspace","twitter_misc":{"Written by":"ivailod","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.awardspace.com\/kb\/php-mail-function\/#article","isPartOf":{"@id":"https:\/\/www.awardspace.com\/kb\/php-mail-function\/"},"author":{"name":"ivailod","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/ce135bfb9f8b0d51d047abe11d77b221"},"headline":"How Do I Send an Email Message Using the PHP Mail() Function?","datePublished":"2017-09-20T13:24:14+00:00","dateModified":"2024-10-17T10:08:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.awardspace.com\/kb\/php-mail-function\/"},"wordCount":1245,"publisher":{"@id":"https:\/\/www.awardspace.com\/#organization"},"image":{"@id":"https:\/\/www.awardspace.com\/kb\/php-mail-function\/#primaryimage"},"thumbnailUrl":"","articleSection":["Mailing Scripts"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.awardspace.com\/kb\/php-mail-function\/","url":"https:\/\/www.awardspace.com\/kb\/php-mail-function\/","name":"How Do I Send an Email Message Using the PHP Mail() Function?","isPartOf":{"@id":"https:\/\/www.awardspace.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.awardspace.com\/kb\/php-mail-function\/#primaryimage"},"image":{"@id":"https:\/\/www.awardspace.com\/kb\/php-mail-function\/#primaryimage"},"thumbnailUrl":"","datePublished":"2017-09-20T13:24:14+00:00","dateModified":"2024-10-17T10:08:44+00:00","description":"In this tutorial, we are going to provide instructions on how to test the PHP mail function and how to send emails using a PHP script.","breadcrumb":{"@id":"https:\/\/www.awardspace.com\/kb\/php-mail-function\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.awardspace.com\/kb\/php-mail-function\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/kb\/php-mail-function\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/www.awardspace.com\/kb\/php-mail-function\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.awardspace.com\/"},{"@type":"ListItem","position":2,"name":"Knowledge Base","item":"https:\/\/www.awardspace.com\/kb\/"},{"@type":"ListItem","position":3,"name":"Email","item":"https:\/\/www.awardspace.com\/kb\/email\/"},{"@type":"ListItem","position":4,"name":"Mailing Scripts","item":"https:\/\/www.awardspace.com\/kb\/email\/mailing-scripts\/"},{"@type":"ListItem","position":5,"name":"How Do I Send an Email Message Using the PHP Mail() Function?"}]},{"@type":"WebSite","@id":"https:\/\/www.awardspace.com\/#website","url":"https:\/\/www.awardspace.com\/","name":"AwardSpace.com","description":"Free Web Hosting with PHP, MySQL, Email Sending, No Ads","publisher":{"@id":"https:\/\/www.awardspace.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.awardspace.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.awardspace.com\/#organization","name":"AwardSpace.com","url":"https:\/\/www.awardspace.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png","contentUrl":"https:\/\/www.awardspace.com\/wp-content\/uploads\/2018\/08\/awardspace_logo.png","width":1759,"height":176,"caption":"AwardSpace.com"},"image":{"@id":"https:\/\/www.awardspace.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/AwardSpace\/","https:\/\/x.com\/awspace","https:\/\/www.instagram.com\/awardspace\/","https:\/\/www.quora.com\/profile\/Award-Space","https:\/\/www.linkedin.com\/company\/19214384\/","https:\/\/www.reddit.com\/user\/AwardSpace","https:\/\/www.pinterest.com\/awardspace\/","https:\/\/www.youtube.com\/user\/AwardspaceWebHosting"]},{"@type":"Person","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/ce135bfb9f8b0d51d047abe11d77b221","name":"ivailod","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.awardspace.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"ivailod"},"url":"https:\/\/www.awardspace.com\/author\/ivailod\/"}]}},"_links":{"self":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts\/13367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/comments?post=13367"}],"version-history":[{"count":2,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts\/13367\/revisions"}],"predecessor-version":[{"id":75680,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/posts\/13367\/revisions\/75680"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/media?parent=13367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/categories?post=13367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.awardspace.com\/wp-json\/wp\/v2\/tags?post=13367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}