code: public function setFrom($email, $name = null)
      {
          if (is_array($email)) {
              $this->from = [$email['email'] => $email['name']];
          } else {
              $this->from = is_object($email) || null === $name
                  ? $email
                  : array($email => $name);
          }
  
          return $this;
      }
docs: Sets the default from address.
  
  @param string|AddressList|Address $email
  @param String|null                $name
  
  @return self