title: Automatically sending an invoice in Magento after a Successful order
body: <p>I’m trying to get Magento to send the Invoice email to the customer (as well as the order email) after a successful order is made (including credit card deduction).
  I’ve managed to get it sending the invoice by using an observer which calls this function:</p>
  
  <pre><code>public function sales_order_invoice_save_after($observer)
  {
  $invoice = $observer-&gt;getInvoice();
  $invoice-&gt;sendEmail(’true’,’’);
  }
  </code></pre>
  
  <p>however, no tax values come through! The tax/order/tax.phtml is included in the invoice email, which has at the top</p>
  
  <pre><code>$_order = $this-&gt;getOrder();
  $_source = $this-&gt;getSource();
  $_fullInfo = $_order-&gt;getFullTaxInfo();
  </code></pre>
  
  <p>when I check _fullInfo it is an empty array.</p>
  
  <p>All the other values of the invoice are showing, it is driving me crazy.</p>
  
  <p>Anyone got any ideas, or a suggestion on a better way to send the invoice after a successful payment?</p>