public function from($from, $name = null)
    {
        $this->from = ($name !== null) ? (ucwords($name) . " <{$from}>") : $from;

        return $this;
    }
public function from($from, $name = null)
    {
        $this->from = ($name !== null) ? (ucwords($name) . " <{$from}>") : $from;

        return $this;
    }
public function from ( $ from , $ name = null ) { $ this -> from = ( $ name !== null ) ? ( ucwords ( $ name ) . " <{$from}>" ) : $ from ; return $ this ; }
Define the sender of the mail

@param string $from
@param string $name

@return Message
Define the sender of the mail