minem Posted January 12, 2005 Posted January 12, 2005 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
gregy Posted January 12, 2005 Posted January 12, 2005 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 <{POST_SNAPBACK}> have you checked for language files?
boxtel Posted January 13, 2005 Posted January 13, 2005 PLZZZ peeps i need help urgently Thanks <{POST_SNAPBACK}> instead of sending the email, echo the content to the screen so you can see what is in there. Treasurer MFC
minem Posted January 13, 2005 Author Posted January 13, 2005 instead of sending the email, echo the content to the screen so you can see what is in there. <{POST_SNAPBACK}> sorry but im a noob @ php so could u give more detailed instructions thanks you
boxtel Posted January 13, 2005 Posted January 13, 2005 sorry but im a noob @ php so could u give more detailed instructions thanks you <{POST_SNAPBACK}> 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
minem Posted January 13, 2005 Author Posted January 13, 2005 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. <{POST_SNAPBACK}> 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); }
boxtel Posted January 13, 2005 Posted January 13, 2005 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); } <{POST_SNAPBACK}> 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
minem Posted January 13, 2005 Author Posted January 13, 2005 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); <{POST_SNAPBACK}> 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
minem Posted January 13, 2005 Author Posted January 13, 2005 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 <{POST_SNAPBACK}> but it still comes out BLANK when i check my mail
boxtel Posted January 13, 2005 Posted January 13, 2005 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 <{POST_SNAPBACK}> 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
minem Posted January 13, 2005 Author Posted January 13, 2005 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'));
boxtel Posted January 13, 2005 Posted January 13, 2005 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')); <{POST_SNAPBACK}> doesn't matter, comment it out so you can see the email content. Treasurer MFC
minem Posted January 13, 2005 Author Posted January 13, 2005 i can see the email content in the next page in plain text format but in my mailbox it still shows up blank
boxtel Posted January 13, 2005 Posted January 13, 2005 i can see the email content in the next page in plain text format but in my mailbox it still shows up blank <{POST_SNAPBACK}> so what does it look like ? Treasurer MFC
minem Posted January 13, 2005 Author Posted January 13, 2005 ( 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 )
boxtel Posted January 13, 2005 Posted January 13, 2005 ( 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 ) <{POST_SNAPBACK}> are you sending text or html email ? Treasurer MFC
minem Posted January 13, 2005 Author Posted January 13, 2005 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
boxtel Posted January 13, 2005 Posted January 13, 2005 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 <{POST_SNAPBACK}> 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
minem Posted January 13, 2005 Author Posted January 13, 2005 i cant check the source ( M$ outlook ) there is 3 lines to select tho
boxtel Posted January 13, 2005 Posted January 13, 2005 i cant check the source ( M$ outlook ) there is 3 lines to select tho <{POST_SNAPBACK}> if you open the email in ms outlook, right click on the email page, you should have an option "view source". Treasurer MFC
minem Posted January 13, 2005 Author Posted January 13, 2005 yep i know but it doesnt look like its HTML its totaly blank
boxtel Posted January 13, 2005 Posted January 13, 2005 yep i know but it doesnt look like its HTML its totaly blank <{POST_SNAPBACK}> in ms outlook when you look at the email , in the title bar, does it say (HTML) or (TEXT) ? Treasurer MFC
minem Posted January 13, 2005 Author Posted January 13, 2005 it doesnt say anything could i forward u this email
Recommended Posts
Archived
This topic is now archived and is closed to further replies.