I’m developing a simple membership application process, user fills out online membership application form, goes to PayPal to pay via simple “buy now” button, then the “return” page html displays “thanks for your payment, blah, blah, blah.” Behind the scenes in the “return” page, the php mail() function sends the application form data to the membership chairman. After two dozen tests everything was working fine, then Sunday the process stopped sending the emails (or they were not delivered, but do not show up in the spam/junk folders.) Everything still works perfectly except the emails don’t get sent.
I’m at a loss as to why. To test if the problem was with my script, I copied the php mail() example from w3schools.com and pasted it into a new php script, uploaded to the server and tested. The html portion works perfectly but still the emails don’t get sent. Note: I changed the emails in the copied script to my real email addresses of course. In the code below, the email addresses are fake for security/privacy reasons.
Does anyone have any ideas why the mail() suddenly function stopped sending emails? Thanks!
[php]<?php // emailtest.php
include(‘templates/header.html’);
include(‘templates/sidebar.html’);
include(‘templates/wings.html’);
?>
Test php mail() - direct copy from W3Schools.com.