SmtpMailer
class SmtpMailer implements Mailer
Sends emails via the SMTP server.
Methods
__construct(array $options = [])
No description
void
connect()
Connects and authenticates to SMTP server.
void
disconnect()
Disconnects from SMTP server.
void
write(string $line, int|int[] $expectedCode = null, string $message = null)
Writes data to server and checks response against expected code if some provided.
string
read()
Reads response from server.
Details
at line 56
__construct(array $options = [])
No description
at line 91
SmtpMailer
setSigner(Signer $signer)
No description
at line 102
void
send(Message $mail)
Sends email.
at line 152
protected void
connect()
Connects and authenticates to SMTP server.
at line 215
protected void
disconnect()
Disconnects from SMTP server.
at line 226
protected void
write(string $line, int|int[] $expectedCode = null, string $message = null)
Writes data to server and checks response against expected code if some provided.
at line 241
protected string
read()
Reads response from server.
Traits
Strict class for better experience.