Guest Posted March 1, 2005 Share Posted March 1, 2005 Hello I?m a newbee (and no programmer) as you might see, so I managed to install my first shop. After some long nights I?m up and running. But still I have looked on this underfull forum and support. My config is: Windows 2003 Mailenable Apache 2.0.53 MySQL 4.1 PHP 4.3.10 So my problem; how to get to get the email to show my message or the costumers order. I have tested email_test and in php the email is complet but not i smtp. I?m using class.smtp.inc contribution. Any body with suggestions or any ides are welcome to pm me or just answer. Very helpful forum!! Link to comment Share on other sites More sharing options...
Guest Posted March 2, 2005 Share Posted March 2, 2005 Ok, so no body know how to help me. Maby I?m not clear enough this is from the email_test.php As I can see is some code in php but still the mail is sent perfect in php native. Once the mail is sent all is OK, so I recive 2 mails one from php and one from smtp. So the problem is that I cant see the body of smtp, but in php it?s OK. Please anybody have a clue what is wrong with my configuration, or have simular problem and have already fixed it. Sorry for my presistance, but I realy want it to work proerly. ------------------------------------------------------------------------------------ <?php if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'send')) { define('SEND_EMAILS', 'true'); if (isset($HTTP_POST_VARS['usehtml']) && ($HTTP_POST_VARS['usehtml'] == '1')) { define('EMAIL_USE_HTML', 'true'); } else { define('EMAIL_USE_HTML', 'false'); } } require('includes/application_top.php'); if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'send')) { mail($HTTP_POST_VARS['to_address'], ' ' . $HTTP_POST_VARS['subject'], 'This email has been sent from the native php mail() function.' . "\n\n" . $HTTP_POST_VARS['body']); tep_mail($HTTP_POST_VARS['to'], $HTTP_POST_VARS['to_address'], '[osCommerce] ' . $HTTP_POST_VARS['subject'], 'This email has been sent from the email class osCommerce uses.' . "\n\n" . $HTTP_POST_VARS['body'], $HTTP_POST_VARS['from'], $HTTP_POST_VARS['from_address']); echo 'E-Mails Sent!<br><br>'; }?><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><?php echo tep_draw_checkbox_field('usehtml', '1'); ?> Send as HTML (overrides the Administration Tool setting)<br><br><input type="hidden" name="action" value="send"><input type="submit"><br><br><input type="reset"></form> ---------------------------------------------------------------------------------- //MMAK5B Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.