Problem setting up paypal verification using IPN

Hi Jeremy,

I had a quick look over the tutorial and one thing that comes to mind is that your server might not be configured correctly to send email. Have you previously been able to send emails using PHP’s mail() function?

Here’s a simple script you could use to test that:

<?php

ini_set( 'display_errors', 1 );
error_reporting( E_ALL );

$to = "youremail@example.com";
$subject = "PHP Mail() Test";
$message = "Hello, world!";

$wasSent = mail($to, $subject, $message);

if ($wasSent) {
    echo "Test email sent";
} else {
    echo "Email NOT sent";
}

Be aware that emails sent from shared hosting and local development servers (eg. WAMP) sometimes get flagged as spam by mail software.

1 Like