Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: Missing argument 6 for tep_mail()


Guest

Recommended Posts

Posted

please help! this happens when customer create an account!

 

Warning: Missing argument 6 for tep_mail() in /home/public_html/includes/functions/general.php on line 995

Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/includes/functions/general.php:995) in /home/public_html/includes/functions/general.php on line 30

 

here is general.php:995

 

  function tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address) {
if (SEND_EMAILS != 'true') return false;

// Instantiate a new mail object
$message = new email(array('X-Mailer: osCommerce Mailer'));

// Build the text version
$text = strip_tags($email_text);
if (EMAIL_USE_HTML == 'true') {
  $message->add_html($email_text, $text);
} else {
  $message->add_text($text);
}

// Send message
$message->build_message();
$message->send($to_name, $to_email_address, $from_email_name, $from_email_address, $email_subject);
 }

 

here is general.php:30

 

	header('Location: ' . $url);

Posted

i removed the $from_email_address on the tep_mail function, now it goes through but i still dont know why this string has to be removed since i have same exact codes working fine on diffrent server. oh well ill just leave it like this for now.

  • 10 months later...
Posted
i removed the $from_email_address on the tep_mail function, now it goes through but i still dont know why this string has to be removed since i have same exact codes working fine on diffrent server. oh well ill just leave it like this for now.

Hi Eric,

 

I have exactly the same error :( but it pops up at the final stage of the checkout.

 

I removed $from_email_address and the checkout works :) , however there's no return email address in the customers emails. Did you make any further progress on identifying the cause of the problem?

 

Thanks in advance

 

Steve

____________________________________________________________________

____________________________________________________________________

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...