woothemes/woocommerce — Issue #396: Wrong Parameters for Completed Order Email
Author: spencerfinnell
Created: 2011-12-19 20:27:41+00:00
State: open

In `woocommerce_emil.class.php` on line `194`, the `$this->send()` function has the wrong parameter order (it's missing the `$headers` argument).

Change

```php
$this->send( $order->billing_email, $subject, $message, $attachments );
```

To

```php
$this->send( $order->billing_email, $subject, $message, "Content-Type: text/html\r\n", $attachments );
```

Right now it's trying to use `$attachments` as the headers. This is forcing emails to be sent in plain text.