|
|
@@ -423,6 +423,7 @@ class Email implements JsonSerializable, Serializable
|
|
|
*/
|
|
|
public function from($email = null, $name = null)
|
|
|
{
|
|
|
+ deprecationWarning('Email::from() is deprecated. Use Email::setFrom() or Email::getFrom() instead.');
|
|
|
if ($email === null) {
|
|
|
return $this->getFrom();
|
|
|
}
|
|
|
@@ -601,6 +602,7 @@ class Email implements JsonSerializable, Serializable
|
|
|
*/
|
|
|
public function returnPath($email = null, $name = null)
|
|
|
{
|
|
|
+ deprecationWarning('Email::returnPath() is deprecated. Use Email::setReturnPath() or Email::getReturnPath() instead.');
|
|
|
if ($email === null) {
|
|
|
return $this->getReturnPath();
|
|
|
}
|