Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin sending email to all customers


evoltuionnet

Recommended Posts

help in admin email for all customers, i get an error:

 

Warning: Bad Message destination in C:\apache\htdocs\catalog\admin\mail.php on line 47

 

Fatal error: Cannot redeclare class smtp in C:\apache\htdocs\catalog\admin\includes\classes\class.smtp.inc on line 12

 

 

my code for admin/email.php is:

 

while ($mail = tep_db_fetch_array($mail_query)) {

$mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', $from, $subject);

$headers .= "From:" . "Team@" . STORE_NAME . "<" . STORE_OWNER_EMAIL_ADDRESS . ">" . "\r\n";

mail($HTTP_POST_VARS['customers_email_address'], $subject, $message,$headers);

}

Link to comment
Share on other sites

where is your mail server setup at? also, for a windows system you need to change settings in the catalog/admin section

 

read the documentation written it explains quite a bit of what you need to know

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...