{"id":53,"date":"2025-06-04T04:17:14","date_gmt":"2025-06-04T04:17:14","guid":{"rendered":"https:\/\/gurencodes.com\/blog\/wordpress\/?p=53"},"modified":"2025-06-04T04:51:26","modified_gmt":"2025-06-04T04:51:26","slug":"project-19-functioning-smtp-email-contact-page-php","status":"publish","type":"post","link":"https:\/\/gurencodes.com\/blog\/wordpress\/index.php\/2025\/06\/04\/project-19-functioning-smtp-email-contact-page-php\/","title":{"rendered":"Project #19: Functioning SMTP email\/contact page (PHP)"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/safebooru.org\/\/samples\/4367\/sample_d271cbf0e5631c3d710947da58446f77027be125.jpg?5821384\" alt=\"1girl absurdres blue_bow blue_eyes blue_hair blush bow bowtie chouzetsusaikawa_tenshi-chan commentary_request fang gradient_hair grey_hair hair_bow highres long_hair long_sleeves midriff_peek multicolored_hair navel needy_girl_overdose open_mouth pink_bow pink_hair pleated_skirt purple_bow quad_tails school_uniform serafuku setsuna_0430 shirt skin_fang skirt solo very_long_hair white_serafuku white_shirt white_skirt yellow_bow yellow_bowtie\"\/><\/figure>\n\n\n\n<p><strong>Estimated date of creation:<\/strong>&nbsp;May 2025<\/p>\n\n\n\n<p><strong>Status:<\/strong>&nbsp;Online \ud83d\udfe2<\/p>\n\n\n\n<p>This uses PHPMailer (which you&#8217;d have to have installed) and the SMTP protocol to send an email on a contact page. Not sure if this is possible in the same way on WIndows. I have PHPMailer installed on Linux. I used Gmail SMTP as my host. That makes it a bit easier when you&#8217;re setting this up. I&#8217;ve had this contact page send things from another email address to my Gmail address. However, I&#8217;m not sure if this works with sending from sending between like Proton and Yahoo, for instance. This is being operated by Google. Not sure how that works. The page you&#8217;re reading this on may have a contact form by the time you&#8217;re reading this, but when I wrote this, I was still figuring this out.<\/p>\n\n\n\n<p>This is written in just an HTML document and a PHP document. It&#8217;s just forms, buttons, and when submitting, the HTML forms refers to the PHP file. It uses a POST request.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Estimated date of creation:&nbsp;May 2025 Status:&nbsp;Online \ud83d\udfe2 This uses PHPMailer (which you&#8217;d have to have installed) and the SMTP protocol to send an email on a contact page. Not sure if this is possible in the same way on WIndows. I have PHPMailer installed on Linux. I used Gmail SMTP as my host. That makes [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-53","post","type-post","status-publish","format-standard","hentry","category-code-projects"],"_links":{"self":[{"href":"https:\/\/gurencodes.com\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gurencodes.com\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gurencodes.com\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gurencodes.com\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gurencodes.com\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":2,"href":"https:\/\/gurencodes.com\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"predecessor-version":[{"id":84,"href":"https:\/\/gurencodes.com\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/53\/revisions\/84"}],"wp:attachment":[{"href":"https:\/\/gurencodes.com\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gurencodes.com\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gurencodes.com\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}