{"id":1122,"date":"2017-07-29T12:27:01","date_gmt":"2017-07-29T12:27:01","guid":{"rendered":"http:\/\/www.withinweb.com\/info\/?p=1122"},"modified":"2017-11-08T09:25:22","modified_gmt":"2017-11-08T09:25:22","slug":"setting-up-email-for-use-with-php-applications","status":"publish","type":"post","link":"https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/","title":{"rendered":"Setting up email for use with PHP applications"},"content":{"rendered":"<p>If your web application requires emails to be sent out from your web server for such things as sending download information, login information and so on, then you will need to set up some email accounts on your hosting system.  This is particularly true for an application such as PHP-eSeller where it is important for the emails to be sent out correctly and reach their destination without ending up in the spam folder.<\/p>\n<p>Log into your hosting account where you set up your databases and administer your web hosting. Normally this will be using <strong>cpanel<\/strong> which will look something like this:<\/p>\n<p><a href=\"http:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/cpanel.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1123\" src=\"https:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/cpanel-211x300.jpg\" alt=\"\" width=\"211\" height=\"300\" srcset=\"https:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/cpanel-211x300.jpg 211w, https:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/cpanel.jpg 400w\" sizes=\"auto, (max-width: 211px) 100vw, 211px\" \/><\/a><\/p>\n<p>You should see a section identified as &#8220;Mail&#8221;.<\/p>\n<p>You need to set up an email account, so click on the link for &#8220;Email accounts&#8221; which will take you to a display where you create an account with a user name and password for your domain.<\/p>\n<p><a href=\"http:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/forwarders.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1125\" src=\"https:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/forwarders-300x167.jpg\" alt=\"\" width=\"300\" height=\"167\" srcset=\"https:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/forwarders-300x167.jpg 300w, https:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/forwarders.jpg 500w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Enter in an email account name. For my applications I normally create an admin account so this will become <strong>admin@myservername.com<\/strong>. You also need to enter in a password which you should should keep a record of.<\/p>\n<p>Now that you have created your account, your hosting will provide you with a link to a web mail client where you can login and then see your emails. You may want to send a test email to your account from hotmail or yahoo just to see how it works.<\/p>\n<p>Now that you have an email account set up, you can use this in your PHP applications.<\/p>\n<p>There is one other step that you may want to do, and that is to redirect this email to one of your other accounts. This will mean that when someone emails <strong>admin@yourservername.com<\/strong>, it will appear in your hotmail or yahoo account.<\/p>\n<p>To do this, in cpanel under the &#8220;Mail&#8221; section, click on the link called &#8220;Forwarders&#8221;. Click on the button called &#8220;Add Forwarders&#8221; which will take you a page that will look something like:<\/p>\n<p><a href=\"http:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/emailaccounts.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1124\" src=\"https:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/emailaccounts-300x109.jpg\" alt=\"\" width=\"300\" height=\"109\" srcset=\"https:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/emailaccounts-300x109.jpg 300w, https:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/emailaccounts.jpg 550w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your web application requires emails to be sent out from your web server for such things as sending download information, login information and so on, then you will need to set up some email accounts on your hosting system.<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/\">Read more <span class=\"screen-reader-text\">Setting up email for use with PHP applications<\/span><span class=\"meta-nav\"> &#8250;<\/span><\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":53,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5,4],"tags":[],"class_list":["post-1122","post","type-post","status-publish","format-standard","hentry","category-php-eseller","category-php-keycodes","category-php-securearea"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Setting up email for use with PHP applications - PHP Web Applications<\/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.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setting up email for use with PHP applications - PHP Web Applications\" \/>\n<meta property=\"og:description\" content=\"If your web application requires emails to be sent out from your web server for such things as sending download information, login information and so on, then you will need to set up some email accounts on your hosting system.&hellip;Read more Setting up email for use with PHP applications &#8250;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/\" \/>\n<meta property=\"og:site_name\" content=\"PHP Web Applications\" \/>\n<meta property=\"article:published_time\" content=\"2017-07-29T12:27:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-11-08T09:25:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/cpanel-211x300.jpg\" \/>\n<meta name=\"author\" content=\"Paul Gibbs\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul Gibbs\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/setting-up-email-for-use-with-php-applications\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/setting-up-email-for-use-with-php-applications\\\/\"},\"author\":{\"name\":\"Paul Gibbs\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/b4df539cfb6debde6d0373daadfeb470\"},\"headline\":\"Setting up email for use with PHP applications\",\"datePublished\":\"2017-07-29T12:27:01+00:00\",\"dateModified\":\"2017-11-08T09:25:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/setting-up-email-for-use-with-php-applications\\\/\"},\"wordCount\":335,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/setting-up-email-for-use-with-php-applications\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/cpanel-211x300.jpg\",\"articleSection\":[\"PHP-eSeller\",\"PHP-KeyCodes\",\"PHP-SecureArea\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/setting-up-email-for-use-with-php-applications\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/setting-up-email-for-use-with-php-applications\\\/\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/setting-up-email-for-use-with-php-applications\\\/\",\"name\":\"Setting up email for use with PHP applications - PHP Web Applications\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/setting-up-email-for-use-with-php-applications\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/setting-up-email-for-use-with-php-applications\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/cpanel-211x300.jpg\",\"datePublished\":\"2017-07-29T12:27:01+00:00\",\"dateModified\":\"2017-11-08T09:25:22+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/b4df539cfb6debde6d0373daadfeb470\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/setting-up-email-for-use-with-php-applications\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/setting-up-email-for-use-with-php-applications\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/setting-up-email-for-use-with-php-applications\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/cpanel.jpg\",\"contentUrl\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/cpanel.jpg\",\"width\":400,\"height\":569},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/setting-up-email-for-use-with-php-applications\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setting up email for use with PHP applications\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\",\"name\":\"PHP Web Applications\",\"description\":\"Information and support for products of WithinWeb.com\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/b4df539cfb6debde6d0373daadfeb470\",\"name\":\"Paul Gibbs\",\"sameAs\":[\"http:\\\/\\\/www.withinweb.com\"],\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/author\\\/azpg27\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setting up email for use with PHP applications - PHP Web Applications","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.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/","og_locale":"en_US","og_type":"article","og_title":"Setting up email for use with PHP applications - PHP Web Applications","og_description":"If your web application requires emails to be sent out from your web server for such things as sending download information, login information and so on, then you will need to set up some email accounts on your hosting system.&hellip;Read more Setting up email for use with PHP applications &#8250;","og_url":"https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/","og_site_name":"PHP Web Applications","article_published_time":"2017-07-29T12:27:01+00:00","article_modified_time":"2017-11-08T09:25:22+00:00","og_image":[{"url":"https:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/cpanel-211x300.jpg","type":"","width":"","height":""}],"author":"Paul Gibbs","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Paul Gibbs","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/#article","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/"},"author":{"name":"Paul Gibbs","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/b4df539cfb6debde6d0373daadfeb470"},"headline":"Setting up email for use with PHP applications","datePublished":"2017-07-29T12:27:01+00:00","dateModified":"2017-11-08T09:25:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/"},"wordCount":335,"commentCount":0,"image":{"@id":"https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/#primaryimage"},"thumbnailUrl":"https:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/cpanel-211x300.jpg","articleSection":["PHP-eSeller","PHP-KeyCodes","PHP-SecureArea"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/","url":"https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/","name":"Setting up email for use with PHP applications - PHP Web Applications","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/#primaryimage"},"image":{"@id":"https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/#primaryimage"},"thumbnailUrl":"https:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/cpanel-211x300.jpg","datePublished":"2017-07-29T12:27:01+00:00","dateModified":"2017-11-08T09:25:22+00:00","author":{"@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/b4df539cfb6debde6d0373daadfeb470"},"breadcrumb":{"@id":"https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/#primaryimage","url":"https:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/cpanel.jpg","contentUrl":"https:\/\/www.withinweb.com\/info\/wp-content\/uploads\/2017\/07\/cpanel.jpg","width":400,"height":569},{"@type":"BreadcrumbList","@id":"https:\/\/www.withinweb.com\/info\/setting-up-email-for-use-with-php-applications\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.withinweb.com\/info\/"},{"@type":"ListItem","position":2,"name":"Setting up email for use with PHP applications"}]},{"@type":"WebSite","@id":"https:\/\/www.withinweb.com\/info\/#website","url":"https:\/\/www.withinweb.com\/info\/","name":"PHP Web Applications","description":"Information and support for products of WithinWeb.com","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.withinweb.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/b4df539cfb6debde6d0373daadfeb470","name":"Paul Gibbs","sameAs":["http:\/\/www.withinweb.com"],"url":"https:\/\/www.withinweb.com\/info\/author\/azpg27\/"}]}},"_links":{"self":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/1122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/users\/53"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/comments?post=1122"}],"version-history":[{"count":7,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/1122\/revisions"}],"predecessor-version":[{"id":1277,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/1122\/revisions\/1277"}],"wp:attachment":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/media?parent=1122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/categories?post=1122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/tags?post=1122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}