Order confirmation email

Posts: 29
Joined: 08/18/2007

The order confirmation email that gets sent to a customer is not working correctly: All the customer gets is a blank email message. There used to be problems with UberCart sending bad HTML, so I saved the email as raw source to see what was under the blank message, and what I found was even weirder: There was no message body whatsoever -- code, text, or anything.. There were just email headers.

How do I make it have body content - order details etc.?

By the way, here are the headers:

From orders@somatics.org Thu Oct 4 00:18:55 2007
Delivered-To: customersemailaddress@domain.com
Received: by 10.35.66.4 with SMTP id t4cs531191pyk;
Wed, 3 Oct 2007 21:18:55 -0700 (PDT)
Received: by 10.70.48.11 with SMTP id v11mr16149436wxv.1191471535239;
Wed, 03 Oct 2007 21:18:55 -0700 (PDT)
Return-Path:
Received: from cgpadmin.wholesolutions.net ([72.248.65.3])
by mx.google.com with ESMTP id i33si2812374wxd.2007.10.03.21.18.51;
Wed, 03 Oct 2007 21:18:55 -0700 (PDT)
Received-SPF: pass (google.com: domain of orders@somatics.org designates 72.248.65.3 as permitted sender) client-ip=72.248.65.3;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of orders@somatics.org designates 72.248.65.3 as permitted sender) smtp.mail=orders@somatics.org
Received: from somatics.org (account somatics@somatics.org [72.248.65.7] verified)
by cgpadmin.wholesolutions.net (CommuniGate Pro SMTP 5.1.12)
with ESMTPA id 4249797 for customersemailaddress@domain.com; Thu, 04 Oct 2007 00:18:47 -0400
Date: Thu, 4 Oct 2007 00:18:47 -0400
Return-Path: orders@somatics.org
To: customersemailaddress@domain.com
From: Somatic Systems
Subject: Your Order at The Somatics Shop
Message-ID:
X-Priority: 3
X-Mailer: PHPMailer [version 1.73]
Array:
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="utf-8"

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Hmm... I just did a test on the Livetest and it worked fine. Have you modified your customer invoice template by any chance? It's based off of that file, so a PHP error in there would cause it to screw up the body of the e-mail. To check, go look at the invoice tab on an order.

Posts: 29
Joined: 08/18/2007

I don't think there's anything wrong with the code. Here's the code from a source view of the invoice page in our site. Does this look problematic or altered?:

<!-- start main content -->
  
<table width="95%" border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#006699" style="font-family: verdana, arial, helvetica; font-size: small;">
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="5" align="center" bgcolor="#FFFFFF" style="font-family: verdana, arial, helvetica; font-size: small;">
                <tr valign="top">
          <td>
            <table width="100%" style="font-family: verdana, arial, helvetica; font-size: small;">
              <tr>
                <td>
                  <img src="http://somatics.org/sites/somatics.org/themes/somatics/logo.png" />
                </td>
                <td width="98%">
                  <div style="padding-left: 1em;">
                  <span style="font-size: large;">The Somatics Shop</span><br/>
                  The future of health...NOW
                  </div>
                </td>
                <td nowrap="nowrap">
                  The Somatics Shop<br>32 Masonic Street<br>Northampton, MA 01060<br />877-586-2555
                </td>
              </tr>
            </table>
          </td>
        </tr>
       
        <tr valign="top">
          <td>

           
            <table cellpadding="4" cellspacing="0" border="0" width="100%" style="font-family: verdana, arial, helvetica; font-size: small;">
              <tr>
                <td colspan="2" bgcolor="#006699">
                  <b>Purchasing Information:</b>
              </td>
              </tr>
              <tr>
              <td nowrap="nowrap">
                 <b>E-mail Address:</b>
                </td>
                <td width="98%">
                  fake@domain.org
                </td>
              </tr>
              <tr>
                <td colspan="2">

                  <table width="100%" cellspacing="0" cellpadding="0" style="font-family: verdana, arial, helvetica; font-size: small;">
                    <tr>
                      <td valign="top" width="50%">
                        <b>Billing Address:</b><br />
                        JOHNS HOPKINS<BR>21 SATIRE AVE<BR>SAFETY TOWNSHIP, NJ 07895<br />
                      </td>
                      <td valign="top" width="50%">
                        <b>Shipping Address:</b><br />
                        COMPANY NAME<BR>SAM DOE<BR>42 IMAGINARY STREET<BR>FLORENCE, CT 01234<br />
                      </td>
                    </tr>
                  </table>

                </td>
              </tr>
              <tr>
                <td nowrap="nowrap">
                  <b>Order Grand Total:</b>
                </td>
                <td width="98%">
                  <b>$133.94</b>
                </td>
              </tr>
              <tr>
                <td nowrap="nowrap">
                  <b>Payment Method:</b>
                </td>
                <td width="98%">
                  Check
                </td>
              </tr>

              <tr>
                <td colspan="2" bgcolor="#006699">
                  <b>Order Summary:</b>
                </td>
              </tr>

              <tr>
                <td colspan="2" bgcolor="#EEEEEE">
                  <font color="#CC6600"><b>Shipping Details:</b></font>
                </td>
              </tr>

              <tr>
                <td colspan="2">

                  <table border="0" cellpadding="1" cellspacing="0" width="100%" style="font-family: verdana, arial, helvetica; font-size: small;">
                    <tr>
                      <td nowrap="nowrap">
                        <b>Order #:</b>
                      </td>
                      <td width="98%">
                        <a href="http://somatics.org/user/1/order/30">30</a>
                      </td>
                    </tr>

                                        <tr>
                      <td nowrap="nowrap">
                        <b>Shipping Method:</b>
                      </td>
                      <td width="98%">
                        Shipping
                      </td>
                    </tr>
                   
                    <tr>
                      <td nowrap="nowrap">
                        Products Subtotal:&nbsp;
                      </td>
                      <td width="98%">
                        $124.94
                      </td>
                    </tr>

                   
                    <tr>
                      <td nowrap="nowrap">
                        Shipping:
                      </td>
                      <td>
                        $9.00                      </td>
                    </tr>
                   
                   
                    <tr>
                      <td>&nbsp;</td>
                      <td>------</td>
                    </tr>

                    <tr>
                      <td nowrap="nowrap">
                        <b>Total for this Order:&nbsp;</b>
                      </td>           
                      <td>
                        <b>$133.94</b>
                      </td>
                    </tr>

                    <tr>
                      <td colspan="2">
                        <br /><br /><b>Products on order:&nbsp;</b>

                        <table width="100%" style="font-family: verdana, arial, helvetica; font-size: small;">

                                                    <tr>
                            <td valign="top" nowrap="nowrap">
                              <b>1 x </b>
                            </td>
                            <td width="98%">
                              <b>Linear Traction Pillow - $41.99</b>
                                                            <br />
                              Model: FS-PLT<br />
                                                            <br />
                            </td>
                          </tr>
                                                    <tr>
                            <td valign="top" nowrap="nowrap">
                              <b>1 x </b>
                            </td>
                            <td width="98%">
                              <b>Alexander Lowen: Human Nature - $10.00</b>
                                                            <br />
                              Model: AA-AL-EXP4<br />
                                                            <br />
                            </td>
                          </tr>
                                                    <tr>
                            <td valign="top" nowrap="nowrap">
                              <b>1 x </b>
                            </td>
                            <td width="98%">
                              <b>Sports Somatics [Video] - $32.95</b>
                                                            <br />
                              Model: VA-SPS-100<br />
                                                            <br />
                            </td>
                          </tr>
                                                    <tr>
                            <td valign="top" nowrap="nowrap">
                              <b>1 x </b>
                            </td>
                            <td width="98%">
                              <b>Somatic Exercises for the Neck, Jaw and Skull - $40.00</b>
                                                            <br />
                              Model: AE-H-0200-C<br />
                                                            <br />
                            </td>
                          </tr>
                         
                      </td>
                    </tr>
                  </table>

                </td>
              </tr>

             
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</td>
</tr>
</table>
   <!-- end main content -->

Posts: 1
Joined: 01/18/2008

I've something along these lines going on at www.endersisland.com - but even stranger. Our store admin gets order emails that are blank. The fields are there, but nothing in them. No idea what is triggering these, and the best part is there is no order being injected into the DB. Just a blank admin email. I've pasted the email with headers below. Would appreciate any advice anyone might have on this.

Thanks,
Josh

Delivered-To: jkatinger@accessionmedia.com
Received: by 10.86.79.8 with SMTP id c8cs41624fgb;
Thu, 17 Jan 2008 15:49:04 -0800 (PST)
Received: by 10.141.63.20 with SMTP id q20mr1861935rvk.291.1200613743056;
Thu, 17 Jan 2008 15:49:03 -0800 (PST)
Return-Path:
Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247])
by mx.google.com with ESMTP id m6si4460573wrm.1.2008.01.17.15.49.01;
Thu, 17 Jan 2008 15:49:03 -0800 (PST)
Received-SPF: neutral (google.com: 209.85.132.247 is neither permitted nor denied by best guess record for domain of info@accessionmedia.com) client-ip=209.85.132.247;
Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.132.247 is neither permitted nor denied by best guess record for domain of info@accessionmedia.com) smtp.mail=info@accessionmedia.com
Received: by an-out-0708.google.com with SMTP id c34so198108anc.27
for ; Thu, 17 Jan 2008 15:49:01 -0800 (PST)
Received: by 10.100.136.15 with SMTP id j15mr5635908and.31.1200613741721;
Thu, 17 Jan 2008 15:49:01 -0800 (PST)
Received: by 10.100.136.15 with SMTP id j15mr5635905and.31.1200613741641;
Thu, 17 Jan 2008 15:49:01 -0800 (PST)
Return-Path:
Received: from sl1.accessionmedia.net (sl1.accessionmedia.net [75.126.221.178])
by mx.google.com with ESMTP id c16si4048915anc.10.2008.01.17.15.49.01;
Thu, 17 Jan 2008 15:49:01 -0800 (PST)
Received-SPF: neutral (google.com: 75.126.221.178 is neither permitted nor denied by best guess record for domain of info@accessionmedia.com) client-ip=75.126.221.178;
Authentication-Results: mx.google.com; spf=neutral (google.com: 75.126.221.178 is neither permitted nor denied by best guess record for domain of info@accessionmedia.com) smtp.mail=info@accessionmedia.com
Received: (qmail 24618 invoked by uid 48); 17 Jan 2008 23:49:01 +0000
Date: 17 Jan 2008 23:49:00 +0000
Message-ID: <20080117234900.24615.qmail@sl1.accessionmedia.net>
To: info@accessionmedia.com
Subject: New Order at Enders Island
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8Bit
X-Mailer: Drupal
Errors-To: info@accessionmedia.com
Sender: info@accessionmedia.com
Reply-To: retreats@endersisland.com
From: retreats@endersisland.com

Order number:
Customer: -
Order total: $0.00
Shipping method: Standard delivery

Products:

Order comments:
No comments left.

Posts: 1
Joined: 10/07/2008

I'm having the same issue. Here is some weirdness though. When I view the email that comes into my email box it says "Order Grand Total: $0.00". When I go into the order and look at the invoice it shows "Order Grand Total: $5.00" like it should. How can I debug where the error is occurring?

Shelby