1
<?php

if(function_exists('mail')) {
    echo 'mail() is enabled';

if (mail('XXXXXXXXXXX@gmail.com', 'My Subject', 'test')) {
    echo("Your message has been sent successfully");
    } else {
    print_r(error_get_last());
    echo("Sorry, your message could not be sent");
}
} else {
    echo 'mail() is not enabled';
}  

?>

output: mail() is enabledSorry, your message could not be sent

no error are displayed

here am using in live server but how can i find error in this case ?? help us

user235449
  • 11
  • 5

0 Answers0