Skip to content

Commit

Permalink
Fix send message call
Browse files Browse the repository at this point in the history
Signed-off-by: Michael M Slusarz <slusarz@horde.org>
  • Loading branch information
joaomachado authored and slusarz committed Mar 13, 2015
1 parent 87d0901 commit a31d69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imp/lib/Compose.php
Expand Up @@ -856,7 +856,7 @@ public function buildAndSendMessage(

/* Get from address. Done after pre_sent hook since from address could
* be changed by hook. */
$from = $headers['from']->getAddressList(true);
$from = $headers['from']->getAddressList(true)->first();
if (is_null($from->host)) {
$from->host = $imp_imap->config->maildomain;
}
Expand Down

0 comments on commit a31d69e

Please sign in to comment.