Newer version of Harald's test script, updated for PHP 7:  <?php if ('send' === ($_POST['action'] ?? null)) { define('SEND_EMAILS', 'true'); } require 'includes/application_top.php'; if ('send' === ($_POST['action'] ?? null)) { mail($_POST['to_address'], '[PHP] ' . $_POST['subject'], 'This email has been sent from the native php mail() function.' . "\n\n" . $_POST['body']); tep_mail($_POST['to'], $_POST['to_address'], '[osCommerce] ' . $_POST['subject'], 'This email has been sent from the email class osCommerce uses.' . "\n\n" . $_POST['body'], $_POST['from'], $_POST['from_address']); echo 'E-Mails Sent!<br /><br />'; } ?> <html> <body> <form name="emailtest" action="email_test.php" method="post"> E-Mail From: <?php echo tep_draw_input_field('from'); ?><br /> E-Mail From Address: <?php echo tep_draw_input_field('from_address'); ?><br /><br /> E-Mail To: <?php echo tep_draw_input_field('to'); ?><br /> E-Mail To Address: <?php echo tep_draw_input_field('to_address'); ?><br /><br /> Subject: <?php echo tep_draw_input_field('subject'); ?><br /><br /> Body:<br /> <?php echo tep_draw_textarea_field('body', 'virtual', 50, 7); ?> <br /><br /> <input type="hidden" name="action" value="send"><input type="submit"><br /><br /><input type="reset"> </form> </body> </html>