jmhobbs/Swiftmailer-Transport--AWS-SES — Issue #13: InvalidParameterValue : Illegal header
Author: jonatrey
Created: 2011-11-14 13:26:17+00:00
State: open

Hello,

Thanks for this transport layer, that's very useful.

I'm using it in a symphony task with the basic implementation as described in the doc...
When sending HTML messages (Content type header is defined as text/html), I get the following response:

```xml

Sender
InvalidParameterValue
Illegal header '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http'.

f3f322f2-0ec1-11e1-b20f-3fffda72cbb3

```

After investigation, I realized, what is **before a colon** is interpreted by amazon as the header name. Looks like this error is pretty common, but I haven't find any case where the body was interpreted as a header.

I tried adding (did not work):
```PHP
$headers = $message->getHeaders();
$headers->addTextHeader("Content-Disposition", "inline");
```