Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

No Confirmation Emails


Shoreham1

Recommended Posts

Hi,

After spending the last 3 days (and nights) searching this forum for a fix to this I thought I;d ask the pro's for much needed help.

 

I've just launched my shop www.ourvillageshop.co.uk and it has PWA and PayPal Shoppiing Cart v3.1.5 installed. Everything worked perfectly and emails were being received by the site admin and the customer.

 

I then installed the Header Tag controller contrib and now the site admin & the customer do not receive mails. I've totally removed the Header tag contrib and mails are still not being received.

 

However, I CAN send and receive emails from contact_us.php and from the Admin / Tools / Send Email.

 

I can only assume that something is wrong with the checkout_process.php however I can't find anything wrong with it.

 

Anyone got any ideas - I'm due to launch today and really don't need this hassle.

 

Cheers all !!!

 

Shoreham1

Link to comment
Share on other sites

Hi,

After spending the last 3 days (and nights) searching this forum for a fix to this I thought I;d ask the pro's for much needed help.

 

I've just launched my shop www.ourvillageshop.co.uk and it has PWA and PayPal Shoppiing Cart v3.1.5 installed. Everything worked perfectly and emails were being received by the site admin and the customer.

 

I then installed the Header Tag controller contrib and now the site admin & the customer do not receive mails. I've totally removed the Header tag contrib and mails are still not being received.

 

However, I CAN send and receive emails from contact_us.php and from the Admin / Tools / Send Email.

 

I can only assume that something is wrong with the checkout_process.php however I can't find anything wrong with it.

 

Anyone got any ideas - I'm due to launch today and really don't need this hassle.

 

Cheers all !!!

 

Shoreham1

 

Did you check your servers error log? If the sendmail fails, it should most likely be documented there. If not, could it be that the delivery is just a bit laggy?

Link to comment
Share on other sites

Did you check your servers error log? If the sendmail fails, it should most likely be documented there. If not, could it be that the delivery is just a bit laggy?

Hi Milligan,

Many thanks for such a quick response.

I'm not too sure how to check my server log as my shop is housed with an ISP. The sendmail definitely works though as I can send mails from the contact_us.php and in the Admin area. I've also tried changing sendmail to SMTP and I can send mails via contact_us.php & on Admin via BOTH methods - but not order confirmations.

Also definitely not laggy (good point though) as I tested orders yesterday morning (over 24 hours ago) and still haven't received anything.

Any other thoughts ?

Cheers

Shoreham1

Link to comment
Share on other sites

I've just ran the Email Test Contrib and I receive mails when the admin email options are set to both sendmail and smtp.

I'm really stumped with this and would appreciate ANY help.....

Cheers,

Shoreham1

 

Hm... sounds strange. Have you tested comfirmations emails today? Perhaps you were extremly unlucky and tested it when the isp had a downperiod on the emails?

 

If thats not the case, what type of administration panel does your isp provide you with? If its CPanel, checking logs is just one click away.

Link to comment
Share on other sites

Hi Milligan,

Totally agree about it being strange - its totally doing my head in !!!

I've checked with my ISP and they do not provide server logs (thats helpful!) so I can;t do that. I've tried several orders today - over 10 inf act and I receive the orders in my Admin panel but no confirmation emails.

 

I even installed "Send Invoice to Customer" contrib to see if this would resolve the issue but it seems to clash with PWA. I've attached the "email" section of the checkout_process - can you see anything wrong with it ?

 

// lets start with the email confirmation

 

// Email Invoice 1.1.

if (EMAIL_INVOICE == 'true') {

 

require(DIR_WS_MODULES . EMAIL_INVOICE_DIR . FILENAME_EMAIL_INVOICE);

 

} else {

 

// DDB - 041103 - Add test for PWA : no display of invoice URL if PWA customer

if (!tep_session_is_registered('noaccount'))

{

$email_order = STORE_NAME . "\n" .

EMAIL_SEPARATOR . "\n" .

EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .

EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" .

EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";

if ($order->info['comments'])

{

$email_order .= tep_db_output($order->info['comments']) . "\n\n";

}

$email_order .= EMAIL_TEXT_PRODUCTS . "\n" .

EMAIL_SEPARATOR . "\n" .

$products_ordered .

EMAIL_SEPARATOR . "\n";

} else {

$email_order = STORE_NAME . "\n" .

EMAIL_SEPARATOR . "\n" .

EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .

EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";

if ($order->info['comments']) {

$email_order .= tep_db_output($order->info['comments']) . "\n\n";

}

$email_order .= 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_TEXT_DELIVERY_ADDRESS . "\n" .

EMAIL_SEPARATOR . "\n" .

tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";

}

 

$email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .

EMAIL_SEPARATOR . "\n" .

tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";

if (is_object($$payment)) {

$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .

EMAIL_SEPARATOR . "\n";

$payment_class = $$payment;

$email_order .= $payment_class->title . "\n\n";

if ($payment_class->email_footer) {

$email_order .= $payment_class->email_footer . "\n\n";

}

}

tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], ORDER_PROCESS_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);

}

/*=======================================================================*/

/**** Email Invoice Mod Snippet ****/

}

 

/**** End of Email Invoice Mod Snippet ****/

/*===================================================

====================*/

 

If I use this checkout_process.php it hangs if I have the "Send Invoice to Customer" contrib enabled - so something is deifinitely wrong.

Really appreciate you looking at this.

Cheers,

Shoreham1

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...