{"id":14384,"date":"2016-08-18T16:15:08","date_gmt":"2016-08-18T13:15:08","guid":{"rendered":"http:\/\/www.webcodegeeks.com\/?p=14384"},"modified":"2018-01-09T10:39:25","modified_gmt":"2018-01-09T08:39:25","slug":"php-send-email-example","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/","title":{"rendered":"PHP Send Email Example"},"content":{"rendered":"<p>E-mail(electronic mail) has become an integral part of the internet. Approximately all tech savy people have an email address. If you have a facebook account, you sure have registered it with an email address.<\/p>\n<p>E-mails are simply messages that can contain text, attachments and they are sent through a computer network to individuals or groups of individuals.<br \/>\nIn this example we are going to learn how to send e-mails with PHP.<br \/>\nFor this example we will use:<\/p>\n<ol>\n<li>A computer with PHP 5.5 installed<\/li>\n<li>notepad++<\/li>\n<\/ol>\n<p>&nbsp;<br \/>\n[ulp id=&#8217;8njY7i2QRy6sg8pg&#8217;]<\/p>\n<h2>1. PHP mail() function<\/h2>\n<p>function <code> boolean mail(to,subject,message,headers,parameters) <\/code> is used to send e-mails in PHP. It takes six parameters and returns true if email was sent, or false on failure.<\/p>\n<ul>\n<li>to: This is a required field and it specifies the receiver of the email. It must be a correctly formated e-mail address.<\/li>\n<li>subject: This is a required field. It specifies the subject of the email. This field should not contain new line characters.<\/li>\n<li>message: This is a required field. It specifies the message to be sent. Lines should not be larger than 70 characters and each line should be separated by (\\n)<br \/>\n<b>Note:<\/b> (Windows only) If a full stop is found on the beginning of a line in the message, it might be removed. To solve this problem, replace the full stop with a double dot:<\/p>\n<pre class=\"brush:php;\">&lt;?php\r\n$text = str_replace(\"\\n.\", \"\\n..\", $text);\r\n?&gt;\r\n<\/pre>\n<\/li>\n<li>headers: This field is optional. It specifies the headers<\/li>\n<li>parameters: This is an optional field, it specifies additional parameter.<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline;\"><em>mail.php<\/em><\/span><\/p>\n<pre class=\"brush:php;\">&lt;?php\r\nif(isset($_POST[\"sendmail\"])){\r\n\/\/ the message\r\n$msg = $_POST[\"message\"];\r\n$rece= $_POST[\"receiver\"];\r\n$subject=$_POST[\"subject\"];\r\n\/\/ use  if lines arelonger than 70 characters\r\n$msg = wordwrap($msg,70);\r\n\/\/ send email\r\nif(mail($rece,$subject,$msg)){\r\necho \"done\";\r\n\r\n}\r\nelse{\r\necho \"error\";\r\n}\r\n\r\n\r\n}\r\n\r\n?&gt;\r\n\r\n&lt;!DOCTYPE html&gt; \r\n&lt;html lang=en&gt;\r\n\t&lt;head&gt;\r\n\t&lt;style&gt;\r\n\thtml, body{\r\n\twidth:100%;\r\n\theight:100%;\r\n\tmargin:0%;\r\n\tfont-family:\"helvetica\",\"verdana\",\"calibri\", \"san serif\";\r\n\toverflow:hidden;\r\n\tpadding:0%;\r\n\tborder:0%;\r\n\t}\r\n\t.a{\r\n\twidth:20%;\r\n\tmargin:10px;\r\n\theight:40px;\r\n\t}\r\n\t.a1{\r\n\tdisplay:inline;\r\n\twidth:20%;\r\n\theight:30px;\r\n\t\r\n\t}\r\n\t#sub{\r\n\tdisplay:inline;\r\n\t\r\n\t\r\n\t}\r\n\r\n\t&lt;\/style&gt;\r\n\t \t\t&lt;meta charset=\"utf-8\" \/&gt;\r\n\t\t&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi\"\/&gt;\r\n\t\r\n\t&lt;title&gt;&lt;\/title&gt;\r\n\t\r\n\t&lt;\/head&gt;\r\n\t&lt;body&gt;\r\n\t\r\n\t&lt;div id=cen align=center&gt;\r\n\t&lt;h1&gt;Email Client&lt;\/h1&gt;\r\n\t&lt;form action=\"mail.php\" method=post&gt;\r\n\t\r\n&lt;input type=email class=a placeholder=receiver name=receiver required&gt;&lt;br&gt;\r\n\r\n&lt;input type=text class=a placeholder=subject name=subject required&gt;&lt;br&gt;\r\n\r\n&lt;textarea rows=\"4\" cols=\"50\" required name=message&gt;&lt;\/textarea&gt;&lt;br&gt;\r\n&lt;input type=submit class=a value=\"Send Mail\" name=sendmail&gt;\r\n\r\n&lt;\/form&gt;\r\n\r\n&lt;\/div&gt;\r\n\t&lt;\/body&gt;\r\n\t&lt;\/html&gt;\r\n<\/pre>\n<p>This script presents an html form to the user. The users fill in the receiver email. The subject of the email and the email body. On line ten we call PHP<code> mail() <\/code>function and pass it the required parameters. On line 8 we use PHP <code>wordwrap<\/code> function to break the message into new lines.<\/p>\n<p>It is important to note that just because the mail was accepted for delivery, it does NOT mean that the mail will actually reach the intended destination.<\/p>\n<h2>1.2 Sending emails with extra headers<\/h2>\n<p>This script sends an email to test@example.com<\/p>\n<p><span style=\"text-decoration: underline;\"><em>mail1.php<\/em><\/span><\/p>\n<pre class=\"brush:php;\">&lt;?php\r\n$to = 'test@example.com' ;\r\n$subject = 'Just Testing PHP mail function' ;\r\n$message = 'I am just testing PHP mail function' ;\r\n$headers = 'From: tester@example.\r\ncom' . \"\\r\\n\" . \"CC: somebodyelse@example.com\";\r\nmail\r\n( $to , $subject , $message , $headers )\r\n;\r\n?&gt;\r\n<\/pre>\n<h2>1.2 Sending an HTML email<\/h2>\n<p>When you send a message using PHP, then all the content will be treated as simple text. Even if you include HTML tags in the message, it will be displayed as simple text and HTML tags will not be formatted according to HTML syntax. PHP provides though an option to send an HTML message as actual HTML message. While sending an email message you can specify a Mime version, content type and character set to send an HTML email.<br \/>\n<span style=\"text-decoration: underline;\"><em>mail3.php<\/em><\/span><\/p>\n<pre class=\"brush:php;\">&lt;?php\r\n\/\/ multiple recipients\r\n$to = 'tester@example.com' . ', ' ;\r\n\/\/ note the comma\r\n$to .= 'tester2@example.com' ;\r\n\/\/ subject\r\n$subject = 'Sending you a test email' ;\r\n\/\/ message\r\n$message = '\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n  &lt;title&gt;Just testing this email, please do not take it too seriously&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n\r\n  &lt;h3&gt;&lt;b&gt;Reminder&lt;\/b&gt;: do not take this email too seriously&lt;\/h3&gt;\r\n  &lt;h2&gt;This is a test email&lt;\/h2&gt;\r\n  &lt;h3&gt;This is a test email&lt;\/h3&gt;\r\n  &lt;h4&gt;This is a test email&lt;\/h4&gt;\r\n  &lt;h5&gt;This is a test email&lt;\/h5&gt;\r\n  &lt;h6&gt;This is a test email&lt;\/h6&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n' ;\r\n\/\/ To send HTML mail, the Content-type header must be set\r\n$headers = 'MIME-\r\nVersion: 1.0' . \"\\r\\n\" ;\r\n$headers .= 'Content-type: text\/\r\nhtml; charset=iso-8859-1' . \"\\r\\n\" ;\r\n\/\/ Additional headers\r\n$headers .= 'To: Mary &lt;mary@example\r\n.com&gt;, Kelly &lt;kelly@example.com&gt;' .\r\n\"\\r\\n\" ;\r\n$headers .= 'From: Group of testers\r\n&lt;testers@example.com&gt;' . \"\\r\\n\" ;\r\n$headers .= 'Cc: testerarchive@exa\r\nmple.com' . \"\\r\\n\" ;\r\n$headers .= 'Bcc: testercheck@exam\r\nple.com' . \"\\r\\n\" ;\r\n\/\/ Mail it\r\nmail( $to , $subject , $message , \r\n$headers );\r\n?&gt;\r\n<\/pre>\n<h2>2. Summary<\/h2>\n<p>In this example we learnt about emails and how to send different kind of e-mails in PHP.<\/p>\n<h2>3. Download the source code<\/h2>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here: \u00a0<strong><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2016\/08\/phpsendmailexample.zip\">phpsendmailexample<\/a><br \/>\n<\/strong><\/div>\n","protected":false},"excerpt":{"rendered":"<p>E-mail(electronic mail) has become an integral part of the internet. Approximately all tech savy people have an email address. If you have a facebook account, you sure have registered it with an email address. E-mails are simply messages that can contain text, attachments and they are sent through a computer network to individuals or groups &hellip;<\/p>\n","protected":false},"author":164,"featured_media":930,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[122],"class_list":["post-14384","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP Send Email Example - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"E-mail(electronic mail) has become an integral part of the internet. Approximately all tech savy people have an email address. If you have a facebook\" \/>\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.webcodegeeks.com\/php\/php-send-email-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP Send Email Example - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"E-mail(electronic mail) has become an integral part of the internet. Approximately all tech savy people have an email address. If you have a facebook\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-18T13:15:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-09T08:39:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Olayemi Odunayo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Olayemi Odunayo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/\"},\"author\":{\"name\":\"Olayemi Odunayo\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/417918d9b5811210265e8590509718b8\"},\"headline\":\"PHP Send Email Example\",\"datePublished\":\"2016-08-18T13:15:08+00:00\",\"dateModified\":\"2018-01-09T08:39:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/\"},\"wordCount\":461,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg\",\"keywords\":[\"php\"],\"articleSection\":[\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/\",\"name\":\"PHP Send Email Example - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg\",\"datePublished\":\"2016-08-18T13:15:08+00:00\",\"dateModified\":\"2018-01-09T08:39:25+00:00\",\"description\":\"E-mail(electronic mail) has become an integral part of the internet. Approximately all tech savy people have an email address. If you have a facebook\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/php\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PHP Send Email Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/417918d9b5811210265e8590509718b8\",\"name\":\"Olayemi Odunayo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/016b2a353262962fceecf5c274161cd9ef60fdf1593ec95e71d37f5fd9b444f6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/016b2a353262962fceecf5c274161cd9ef60fdf1593ec95e71d37f5fd9b444f6?s=96&d=mm&r=g\",\"caption\":\"Olayemi Odunayo\"},\"description\":\"I am a programmer and web developer, who has experience in developing websites and writing desktop and mobile applications. I have worked with both schematic and schemaless databases. I am also familiar with third party API and working with cloud servers. I do programming on the client side with Java, JavaScript, html, Ajax and CSS while I use PHP for server side programming.\",\"sameAs\":[\"https:\/\/www.webcodegeeks.com\/\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/olayemi-odunayo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP Send Email Example - Web Code Geeks - 2026","description":"E-mail(electronic mail) has become an integral part of the internet. Approximately all tech savy people have an email address. If you have a facebook","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.webcodegeeks.com\/php\/php-send-email-example\/","og_locale":"en_US","og_type":"article","og_title":"PHP Send Email Example - Web Code Geeks - 2026","og_description":"E-mail(electronic mail) has become an integral part of the internet. Approximately all tech savy people have an email address. If you have a facebook","og_url":"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_published_time":"2016-08-18T13:15:08+00:00","article_modified_time":"2018-01-09T08:39:25+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg","type":"image\/jpeg"}],"author":"Olayemi Odunayo","twitter_card":"summary_large_image","twitter_creator":"@webcodegeeks","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Olayemi Odunayo","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/"},"author":{"name":"Olayemi Odunayo","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/417918d9b5811210265e8590509718b8"},"headline":"PHP Send Email Example","datePublished":"2016-08-18T13:15:08+00:00","dateModified":"2018-01-09T08:39:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/"},"wordCount":461,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg","keywords":["php"],"articleSection":["PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/","url":"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/","name":"PHP Send Email Example - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg","datePublished":"2016-08-18T13:15:08+00:00","dateModified":"2018-01-09T08:39:25+00:00","description":"E-mail(electronic mail) has become an integral part of the internet. Approximately all tech savy people have an email address. If you have a facebook","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/php\/php-send-email-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"PHP","item":"https:\/\/www.webcodegeeks.com\/category\/php\/"},{"@type":"ListItem","position":3,"name":"PHP Send Email Example"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/417918d9b5811210265e8590509718b8","name":"Olayemi Odunayo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/016b2a353262962fceecf5c274161cd9ef60fdf1593ec95e71d37f5fd9b444f6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/016b2a353262962fceecf5c274161cd9ef60fdf1593ec95e71d37f5fd9b444f6?s=96&d=mm&r=g","caption":"Olayemi Odunayo"},"description":"I am a programmer and web developer, who has experience in developing websites and writing desktop and mobile applications. I have worked with both schematic and schemaless databases. I am also familiar with third party API and working with cloud servers. I do programming on the client side with Java, JavaScript, html, Ajax and CSS while I use PHP for server side programming.","sameAs":["https:\/\/www.webcodegeeks.com\/"],"url":"https:\/\/www.webcodegeeks.com\/author\/olayemi-odunayo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/14384","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/164"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=14384"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/14384\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/930"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=14384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=14384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=14384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}