digicammad Posted October 9, 2007 Share Posted October 9, 2007 When a customer places an order on my site, the email they receive shows the envelope information in the body text and (in Outlook) the To address doesn't show up on the 'To' line. The email sent to the shop owner seems fine. The envelope contents are below X-Daemon-Classification: INNOCENT Envelope-to: [email protected] Delivery-date: Tue, 09 Oct 2007 09:44:24 +0100 Received: from web3.uk.assimilatedservers.net ([85.118.236.24]) by fhw-sunmxcore04.plus.net with esmtp (PlusNet MXCore v2.00) id 1IfAhT-0001e2-UI for [email protected]; Tue, 09 Oct 2007 09:44:24 +0100 Received: from web3.uk.assimilatedservers.net (localhost [127.0.0.1]) by web3.uk.assimilatedservers.net (8.13.1/8.13.1) with ESMTP id l998gHYv003668 for <[email protected]>; Tue, 9 Oct 2007 08:42:17 GMT Received: (from httpd@localhost) by web3.uk.assimilatedservers.net (8.13.1/8.13.1/Submit) id l998gGm1003667; Tue, 9 Oct 2007 08:42:16 GMT Date: Tue, 9 Oct 2007 08:42:16 GMT Message-Id: <[email protected]> To: " " <[email protected]> Subject: Order Process From: "Useful Magnets" <[email protected]> MIME-Version: 1.0 X-Mailer: osCommerce Mailer Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-PN-VirusFiltered: by PlusNet MXCore (v4.00) X-DSPAM-Result: Innocent X-DSPAM-Processed: Tue Oct 9 09:44:25 2007 X-DSPAM-Confidence: 0.9908 X-DSPAM-Improbability: 1 in 10763 chance of being spam X-DSPAM-Probability: 0.0000 X-DSPAM-Factors: 27, Sort+Code, 0.00352, Account+No, 0.00364, Received*(8.13.1/8.13.1/Submit), 0.00403, Received*(8.13.1/8.13.1/Submit)+id, 0.00403, Delivery-date*Tue+09, 0.00518, Module, 0.00591, £35+00, 0.00765, Subject*Order+Process, 0.01000, Delivery-date*09+Oct, 0.01000, Date+Ordered, 0.01000, Invoice+https, 0.01000, Mail+2nd, 0.01000, Url*uk/account_history_info, 0.01000, 09+October, 0.01000, £49+50, 0.01000, 2nd+Class, 0.01000, Products+1, 0.01000, Name+C, 0.01000, Detailed+Invoice, 0.01000, total+order, 0.01000, receive+payment, 0.01210, Sub+Total, 0.01210, Delivery+Address, 0.01246, Class+Standard, 0.01326, X-Mailer*Mailer, 0.01340, £49, 0.01363, Liverpool+Road, 0.01369 Can anybody help me fix this? Thanks Link to comment Share on other sites More sharing options...
digicammad Posted October 9, 2007 Author Share Posted October 9, 2007 The line below seems to be the one causing problems tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); I have temporarily amended it so it doesn't attempt to include the customer's first and last name and now the email comes through okay, so it looks like for some reason the customer name is empty, even though it has been added to the order and the store owners email okay. I'm confused Link to comment Share on other sites More sharing options...
Gauravs Posted October 9, 2007 Share Posted October 9, 2007 echo $order->customer['firstname'] and $order->customer['lastname'] to see if these values exist. Since outlook displays name, when there is no name - it fails to show (even if headers have email id) ... If you don't get firstname / lastname in these variables, check where are they (failing to) getting populated. Hope that helps, Cheers, Gaurav Best Regards,Gaurav Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.