-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTransport.php
More file actions
48 lines (40 loc) · 870 Bytes
/
Transport.php
File metadata and controls
48 lines (40 loc) · 870 Bytes
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
<?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 Qubus\Exception\Exception;
interface Transport
{
/**
* Send messages using SMTP.
*
* @return static
* @throws Exception
*/
public function withSmtp(): static;
/**
* Send messages using PHP's native mail() function.
*
* @return static
*/
public function withMail(): static;
/**
* Send messages using Sendmail.
*
* @return static
*/
public function withSendmail(): static;
/**
* Send messages using qmail.
*
* @return static
*/
public function withQmail(): static;
}