We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 9a22031 commit e6f1db6Copy full SHA for e6f1db6
src/Message.php
@@ -148,10 +148,11 @@ public function getBcc()
148
public function setFrom($email, $name = "")
149
{
150
$email = (string)$email;
151
- if (!$email) return false;
152
- if (!$this->checkEmail($email)) return false;
+ if (!$email) return $this;
+ if (!$this->checkEmail($email)) return $this;
153
$contact = $this->getContact($email, $name);
154
$this->setHeaderRaw("From", $contact);
155
+ return $this;
156
}
157
158
public function getRecipients()
src/Message/MessagePart.php
0 commit comments