jjaffeux/postmark-inbound-php — Issue #2: from_email() does not return email when name is ommitted
Author: jboesch
Created: 2012-02-20 16:15:17+00:00
State: open

the from_email() method works great if the "From" field from postmark is
"From": "\"Some name\" "

But I was getting back "From": "some@email.com" from postmark. Calling from_email() when your JSON response has ONLY an email in the "From" returns an empty string.

Of course an easy fix would be
```php
$email = ($inbound->from_email() ? $inbound->from_email() : $inbound->from());
```

But I think from_email() should return the from email no matter if your "From" field is formatted like "From": "\"Some name\" " or "From": "some@email.com"

It took me awhile to figure this out.