swiftmailer/swiftmailer — Issue #130: setReturnPath() does not accept email address in the same format as other setXXX() functions
Author: FractalizeR
Created: 2011-11-11 14:29:53+00:00
State: open

``` $message->setTo($email);
$message->setSubject("$subject);
$message->setFrom($this->fromAddress);
$message->setReplyTo($this->fromAddress);
$message->setReturnPath($this->fromAddress[0]);
```

$this->fromAddress is like ```array('email@example.com' => 'ExampleEmail'),```

The problem is, that setFrom() and setReplyTo() accept array as email and transform it correctly, but setReturnPath() expects string only.

This is slightly inconvenient.