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
|
<?php
namespace SolidWP\Mail\Contracts;
use WP_Error;
interface Api_Connector { /** * Determines if email should be sent via API instead of SMTP. * * @param array{ * to: array<array{0: string, 1: string}>, * cc: array<array{0: string, 1: string}>, * bcc: array<array{0: string, 1: string}>, * from: string, * sender: string, * subject: string, * headers: string, * body: string, * custom_headers: array<string, string>, * reply_to: array<array{0: string, 1: string}>, * all_recipients: array<string>, * message_type: string, * charset: string, * encoding: string * } $email_data Email sending data including recipients, content, and headers. * * @return bool|WP_Error Returns true if email was sent successfully, WP_Error on failure. */ public function send_use_api( array $email_data ); }
|