Jump to content

YePix

Members
  • Content count

    204
  • Joined

  • Last visited

  • Days Won

    1

YePix last won the day on March 28

YePix had the most liked content!

Profile Information

  • Real Name
    Peter
  • Gender
    Male

Recent Profile Visitors

15,306 profile views
  1. YePix

    Duplicate order mail

    I found the error . in the email class the addresses were not cleaned up
  2. YePix

    Duplicate order mail

    i changed this // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } in // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', 'info@shopmail.com', EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } no reaction. it will continue to receive duplicate emails
  3. YePix

    Duplicate order mail

    info@shopmail.com
  4. YePix

    Duplicate order mail

    absolutely normal, store owner emailaddress
  5. YePix

    Duplicate order mail

    Shopemail is: info@shopmail.com Customer Mail is: kunde@bestellung.com As you can see, the two do not agree
  6. YePix

    Duplicate order mail

    Yes that's it. That's the problem and I can not explain why it is
  7. YePix

    Duplicate order mail

    No. Shop email address Email from and additional order mail to admin is always the same email address
  8. YePix

    Duplicate order mail

    No. 1x Admin and 2x customer
  9. YePix

    Duplicate order mail

    Hello Rainer, unfortunately not. the order mails arrive twice at all mail accounts
  10. YePix

    Duplicate order mail

    Yes that was it. Thanks. But now I need the order mail for the admin
  11. YePix

    Duplicate order mail

    nothing changes
  12. YePix

    Duplicate order mail

    and this my classes/mail require_once 'ext/modules/PHPMailer/class.phpmailer.php'; $phpMail = new PHPMailer(); class email { var $html; var $text; var $html_text; var $lf; var $debug = 0; var $debug_output = 'error_log'; function email($headers = '') { global $phpMail; $phpMail->XMailer = 'osCommerce Mailer ' . tep_get_version(); $phpMail->SMTPDebug = $this->debug; $phpMail->Debugoutput = $this->debug_output; $phpMail->CharSet = CHARSET; $phpMail->WordWrap = 998; if (EMAIL_LINEFEED == 'CRLF') { $this->lf = "\r\n"; } else { $this->lf = "\n"; } } function add_text($text = '') { global $phpMail; $phpMail->IsHTML(false); $this->text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); } function add_html($html, $text = NULL, $images_dir = NULL) { global $phpMail; $phpMail->IsHTML(true); $this->html = tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br />', $html); $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); if (isset($images_dir)) $this->html = $phpMail->msgHTML($this->html, $images_dir); } function add_attachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment') { global $phpMail; $phpMail->AddAttachment($path, $name, $encoding, $type, $disposition); } function build_message() { //out of work function } function send($to_name, $to_addr, $from_name, $from_addr, $subject = '', $reply_to = false) { global $phpMail; if ((strstr($to_name, "\n") != false) || (strstr($to_name, "\r") != false)) { return false; } if ((strstr($to_addr, "\n") != false) || (strstr($to_addr, "\r") != false)) { return false; } if ((strstr($subject, "\n") != false) || (strstr($subject, "\r") != false)) { return false; } if ((strstr($from_name, "\n") != false) || (strstr($from_name, "\r") != false)) { return false; } if ((strstr($from_addr, "\n") != false) || (strstr($from_addr, "\r") != false)) { return false; } $phpMail->From = $from_addr; $phpMail->FromName = $from_name; $phpMail->AddAddress($to_addr, $to_name); if ($reply_to) { $phpMail->AddReplyTo(EMAIL_SMTP_REPLYTO, STORE_NAME); } else { $phpMail->AddReplyTo($from_addr, $from_name); } $phpMail->Subject = $subject; if (!empty($this->html)) { $phpMail->Body = $this->html; $phpMail->AltBody = $this->html_text; } else { $phpMail->Body = $this->text; } if (EMAIL_TRANSPORT == 'smtp' || EMAIL_TRANSPORT == 'gmail') { $phpMail->IsSMTP(); $phpMail->Host = EMAIL_SMTP_HOSTS; $phpMail->SMTPAuth = EMAIL_SMTP_AUTHENTICATION; $phpMail->Username = EMAIL_SMTP_USER; $phpMail->Password = EMAIL_SMTP_PASSWORD; if (EMAIL_TRANSPORT == 'gmail') { $phpMail->Port = 465; $phpMail->SMTPSecure = 'ssl'; } } else { $phpMail->isSendmail(); } if (!$phpMail->Send()) { return false; } return true; } } /* ** Altered for Mail Manager ** */ // eliminate line feeds as <br> class emailMailManager extends email { function add_html($html, $text = NULL, $images_dir = NULL) { $this->html = $html; //tep_convert_linefeeds(array("\r\n", "\n", "\r"), '<br>', $html); $this->html_text = tep_convert_linefeeds(array("\r\n", "\n", "\r"), $this->lf, $text); if (isset($images_dir)) $this->find_html_images($images_dir); } } /* ** EOF alterations for Mail Manager ** */
  13. YePix

    Duplicate order mail

    2.3.4-1 EDGE this is my mail in checkout_process: $email_order = EMAIL_CUSTOMER_ORDERINFO . '&nbsp;' . STORE_NAME . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_INVOICE_URL . "\n" . tep_href_link('account_history_info.php', 'order_id=' . $insert_id, 'SSL', false) . "\n\n" . EMAIL_CUSTOMER .'&nbsp;'. $order->customer['firstname'] . ' ' . $order->customer['lastname']."\n" . ENTRY_TELEPHONE_NUMBER .'&nbsp;'. $order->customer['telephone']."\n" . '<font color="#990000"><strong>' . strftime(DATE_FORMAT_LONG) . '&nbsp;' . $datum . '</strong></font><font color="#0099FF"><strong>' . "\n\n"; // PWA guest checkout echo $OSCOM_Hooks->call('pwa', 'PwaCheckoutMailMod'); if ($order->info['comments']) { $email_order .= tep_db_output($order->info['comments']) . "\n"; } $email_order .= '</strong></font>' . EMAIL_SEPARATOR . "\n\n" . // EMAIL_TEXT_PRODUCTS . "\n" . // EMAIL_SEPARATOR . "\n" . $products_ordered . EMAIL_SEPARATOR . "\n"; for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; } if ($order->content_type != 'virtual') { $email_order .= "\n" . EMAIL_SEPARATOR . "\n" . '<font color="#990000">' . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . tep_address_label($customer_id, $sendto, 0, '', "\n") . '</font>' . "\n\n"; if (SHOW_PRODUCTS_SHIPPING_TIME_ON == 'true') { $today_year = date('Y'); list($lieferdatum_von,$lieferdatum_bis) = get_lieferzeitraum($order->info['country_id']); $email_order .= "\n" . TEXT_LIEFERUNG_PI . $lieferdatum_von . TEXT_LIEFERUNG_PI_TO . $lieferdatum_bis . $today_year . "\n\n"; } } if (SEND_IN_MAIL_BILLING_ADDRESS == 'true') { $email_order .= "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; } if (is_object($$payment)) { $email_order .= EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_PAYMENT_METHOD . "\n"; $payment_class = $$payment; $email_order .= $order->info['payment_method'] . "\n\n"; if (isset($payment_class->email_footer)) { $email_order .= $payment_class->email_footer . "\n\n"; } } if (SEND_EMAIL_TSTM == 'true') { $email_order .= TEXT_INFORMATION_TSTM . "\n"; } tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } // load the after_process function from the payment modules $payment_modules->after_process(); // remove items from wishlist if customer purchased them $wishList->clear(); $cart->reset(true); // unregister session variables used during checkout tep_session_unregister('sendto'); tep_session_unregister('billto'); tep_session_unregister('shipping'); tep_session_unregister('payment'); tep_session_unregister('comments'); // POINTS REWARDS BS echo $OSCOM_Hooks->call('checkout_process', 'CheckoutProcessUnregister'); tep_redirect(tep_href_link('checkout_success.php', '', 'SSL'));
  14. YePix

    Duplicate order mail

    thanks, but also with sendmail nothing changes
  15. YePix

    Duplicate order mail

    order emails are sent to customers twice. Does anyone have an idea where to look for the error?
×