Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Email BLANK


minem

Recommended Posts

Posted

Hi

 

my site is sending emails but when the emails arrive @ client or @ storeowner they are Blank

 

any ideas on what to change & where

 

thank you in advance

Posted
Hi

 

my site is sending emails but when the emails arrive @ client or @ storeowner they are Blank

 

any ideas on what to change & where

 

thank you in advance

 

 

have you checked for language files?

Posted
instead of sending the email, echo the content to the screen so you can see what is in there.

 

sorry but im a noob @ php so could u give more detailed instructions

 

thanks you

Posted
sorry but im a noob @ php so could u give more detailed instructions

 

thanks you

 

 

in checkout_process it says something like this :

 

tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

the email content is in $email_order.

 

so use the statement :

 

echo $email_order;

 

and the content will be send to your screen so you can see if there is anything wrong with it.

Treasurer MFC

Posted
in checkout_process it says something like this :

 

  tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

the email content is in $email_order.

 

so use the statement :

 

echo $email_order;

 

and the content will be send to your screen so you can see if there is anything wrong with it.

 

ok when i press the confirm order on the checkout it goes to a blank page

 

here is my code for that section

 

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'], EMAIL_TEXT_SUBJECT, echo $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);

}

Posted
ok when i press the confirm order on the checkout it goes to a blank page

 

here is my code for that section

 

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'], EMAIL_TEXT_SUBJECT, echo $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);

  }

 

 

don't put the echo in the email statement !

 

use this :

 

echo $email_order;

 

tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

Treasurer MFC

Posted
don't put the echo in the email statement !

 

use this :

 

echo $email_order;

 

  tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

ok ive done that & when i click confirm a page opens with the order details & a link to detailed invoice ( all in plain text ) looks correct

Posted
ok ive done that & when i click confirm a page opens with the order details & a link to detailed invoice ( all in plain text ) looks correct

 

 

but it still comes out BLANK when i check my mail

Posted
ok ive done that & when i click confirm a page opens with the order details & a link to detailed invoice ( all in plain text ) looks correct

 

 

ok, just for testing, comment out this statement :

 

tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));

 

 

so it looks like :

 

// tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));

Treasurer MFC

Posted

I GOT IT LIKE THIS

 

// BOF: Lango added for print order mod

tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'order_id='. $insert_id, 'SSL'));

Posted
I GOT IT LIKE THIS

 

// BOF: Lango added for print order mod

  tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'order_id='. $insert_id, 'SSL'));

 

 

doesn't matter, comment it out so you can see the email content.

Treasurer MFC

Posted

i can see the email content in the next page in plain text format but in my mailbox it still shows up blank

Posted

( My company name ) ------------------------------------------------------ Order Number: 6 Detailed Invoice: ( link to page with detailed invoice ) Date Ordered: Thursday 13 January, 2005 Products ------------------------------------------------------ 1 x CanoScan Lide30 (LIDE30) = R610.00 1 x Epson Perfection 1670 (EP-1670) = R690.00 1 x 1/4-inch - 3/8-inch (6-10mm) Hose Adapter (K-ADT-06T10S) = R49.00 1 x UV-Reactive PVC Tubing - Blue (1 metre) (I-500-712) = R79.00 ------------------------------------------------------ Sub-Total: R1,428.00 Total: R1,428.00 Delivery Address ------------------------------------------------------ , Billing Address ------------------------------------------------------ (MY company details) Payment Method ------------------------------------------------------ Cash on Delivery

 

 

 

it looks like that ( pls note i have edited out the stuff in brackets )

 

looks right but it doesnt show like this in mailbox ( its just a blank email )

Posted
( My company name ) ------------------------------------------------------ Order Number: 6 Detailed Invoice: ( link to page with detailed invoice ) Date Ordered: Thursday 13 January, 2005 Products ------------------------------------------------------ 1 x CanoScan Lide30 (LIDE30) = R610.00 1 x Epson Perfection 1670 (EP-1670) = R690.00 1 x 1/4-inch - 3/8-inch (6-10mm) Hose Adapter (K-ADT-06T10S) = R49.00 1 x UV-Reactive PVC Tubing - Blue (1 metre) (I-500-712) = R79.00 ------------------------------------------------------ Sub-Total: R1,428.00 Total: R1,428.00 Delivery Address ------------------------------------------------------ , Billing Address ------------------------------------------------------ (MY company details) Payment Method ------------------------------------------------------ Cash on Delivery

it looks like that ( pls note i have edited out the stuff in brackets )

 

looks right but it doesnt show like this in mailbox ( its just a blank email )

 

 

are you sending text or html email ?

Treasurer MFC

Posted

i think i tried both

 

E-Mail Transport Method smtp

E-Mail Linefeeds CRLF

Use MIME HTML When Sending Emails false

Verify E-Mail Addresses Through DNS false

Send E-Mails true

 

 

also tried it with

 

E-Mail Transport Method smtp

E-Mail Linefeeds CRLF

Use MIME HTML When Sending Emails true

Verify E-Mail Addresses Through DNS false

Send E-Mails true

Posted
i think i tried both

 

E-Mail Transport Method smtp 

E-Mail Linefeeds CRLF 

Use MIME HTML When Sending Emails false 

Verify E-Mail Addresses Through DNS false 

Send E-Mails true 

also tried it with

 

E-Mail Transport Method smtp 

E-Mail Linefeeds CRLF 

Use MIME HTML When Sending Emails true 

Verify E-Mail Addresses Through DNS false 

Send E-Mails true

 

 

try it with html and check what the source code is of the email.

right click on the email and select view source if you have that option.

Treasurer MFC

Posted
i cant check the source ( M$ outlook )

 

there is 3 lines to select tho

 

if you open the email in ms outlook, right click on the email page, you should have an option "view source".

Treasurer MFC

Posted
yep

 

i know but it doesnt look like its HTML

 

its totaly blank

 

 

in ms outlook when you look at the email , in the title bar, does it say (HTML) or (TEXT) ?

Treasurer MFC

Archived

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

×
×
  • Create New...