src/Leevel/Mail/Mail.php
public function globalFrom(string $address, ?string $name = null): IMail
    {
        $this->setOption('global_from', compact('address', 'name'));

        return $this;
    }
public function globalFrom(string $address, ?string $name = null): IMail
    {
        $this->setOption('global_from', compact('address', 'name'));

        return $this;
    }
设置邮件发送来源.

@param string      $address
@param null|string $name

@return $this