-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddresses.php
66 lines (57 loc) · 1.57 KB
/
Addresses.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* Qubus\Mail
*
* @link https://github.com/QubusPHP/mail
* @copyright 2023
* @author Joshua Parker <joshua@joshuaparker.dev>
* @license https://opensource.org/licenses/mit-license.php MIT License
*/
declare(strict_types=1);
namespace Qubus\Mail;
use PHPMailer\PHPMailer\Exception;
interface Addresses
{
/**
* Set the From and FromName properties.
*
* @param string $address
* @param string $name
* @param bool $auto Whether to also set the Sender address, defaults to true.
* @return static
* @throws Exception
*/
public function withFrom(string $address, string $name = '', bool $auto = true): static;
/**
* Add a "To" address.
*
* @param string|array $address The email address(es) to send to.
* @return static
* @throws Exception
*/
public function withTo(string|array $address): static;
/**
* Add a "CC" address.
*
* @param string|array $address The email address(es) to send to.
* @return static
* @throws Exception
*/
public function withCc(string|array $address): static;
/**
* Add a "BCC" address.
*
* @param string|array $address The email address(es) to send to.
* @return static
* @throws Exception
*/
public function withBcc(string|array $address): static;
/**
* Add a "Reply-To" address.
*
* @param string|array $address The email address(es) to reply to.
* @return static
* @throws Exception
*/
public function withReplyTo(string|array $address): static;
}