First Test Results: '; if(mail($email, 'First Test in testing', 'If you received this then the test passed')) echo 'We sent the email
'; else echo 'We failed to send the email
'; } // Test: 2; Are any strings a problem?? function smf_email_test2() { global $email; $subject = 'Second Test'; $msg = 'If you received this then the test passed'; echo 'Are any strings a problem?
Second Test Results: '; if(mail($email, $subject, $msg)) echo 'We sent the email
'; else echo 'We failed to send the email
'; } // Test: 3; Are SMF text strings a problem?? function smf_email_test3() { global $email, $txt; echo 'Are SMF Text strings a problem?
Third Test Results: '; if(mail($email, ('Third Test:' . $txt[106]), ($txt[152] . ' ' . $txt[164] . ' ' . $txt[153] . 'If you received this then the test passed'))) echo 'We sent the email
'; else echo 'We failed to send the email
'; } // Test: 4; Email allowed to be sent from your forum name? function smf_email_test4() { global $email, $txt, $context, $mbname; echo 'Are we allowed to send with your forum name (', $mbname, ') ?
Fourth Test Results: '; if(sendmail($email, 'Fourth Test:', 'If you received this then the test passed', $mbname)) echo 'We sent the email
'; else echo 'We failed to send the email
'; } // Test: 5; Email allowed to be sent from webmaster_email? function smf_email_test5() { global $email, $txt, $context, $webmaster_email; echo 'Are we allowed to send with webmaster email (', $webmaster_email, ') ?
Fifth Test Results: '; if(sendmail($email, 'Fifth Test', 'If you received this then the test passed', $webmaster_email)) echo 'We sent the email
'; else echo 'We failed to send the email
'; } // Test: 6; Email allowed to be sent from your domain? function smf_email_test6() { global $email, $txt, $context, $webmaster_email; // Borrowed, stripped, and edited from No Reply Emails. $from = 'noreply@' . str_replace('www.', '', $_SERVER['HTTP_HOST']); echo 'Are we allowed to send from your domain?
Sixth Test Results: '; if(sendmail($email, 'Sixth Test', 'If you received this then the test passed', $from)) echo 'We sent the email
'; else echo 'We failed to send the email
'; } // Test: 7; HTML allowed? function smf_email_test7() { global $email, $txt, $context, $webmaster_email; echo 'Are we allowed to Send with HTML?
Seventh Test Results: '; if(sendmail($email, 'Seventh Test', 'If you received this then the test passed', $webmaster_email, null, null, true)) echo 'We sent the email
'; else echo 'We failed to send the email
'; } ?>