MailerConfig

For mail configuration, it is recommended to know what corresponding information is needed to send mail first, so as to facilitate correspondence with the following methods.

set

Set server address

public function setServer(string $server): void

Set server port

public function setPort(int $port): void

Set ssl

public function setSsl(bool $ssl): void

Set username

public function setUsername(string $username): void

Set password

public function setPassword(string $password): void

Set mail sender

public function setMailFrom(string $mailFrom): void

Set timeout

public function setTimeout(float $timeout): void

Set mail size

public function setMaxPackage(int $maxPackage)

get

Get server address

public function getServer(): string

Get server port

public function getPort(): int

Whether SSL is set

public function isSsl(): bool

Get username

public function getUsername(): string

Get password

public function getPassword(): string

Get mail sender

public function getMailFrom(): string

Get timeout

public function getTimeout(): float

Get email size

public function getMaxPackage()