Skip to content

Addresses

  • Full name: \Qubus\Mail\Addresses

Methods

withFrom

Set the From and FromName properties.

public withFrom(string $address, string $name = '', bool $auto = true): static

Parameters:

Parameter Type Description
$address string
$name string
$auto bool Whether to also set the Sender address, defaults to true.

Throws:


withTo

Add a "To" address.

public withTo(string|array $address): static

Parameters:

Parameter Type Description
$address string|array The email address(es) to send to.

Throws:


withCc

Add a "CC" address.

public withCc(string|array $address): static

Parameters:

Parameter Type Description
$address string|array The email address(es) to send to.

Throws:


withBcc

Add a "BCC" address.

public withBcc(string|array $address): static

Parameters:

Parameter Type Description
$address string|array The email address(es) to send to.

Throws:


withReplyTo

Add a "Reply-To" address.

public withReplyTo(string|array $address): static

Parameters:

Parameter Type Description
$address string|array The email address(es) to reply to.

Throws:



Automatically generated on 2025-10-13