- class
Email
(php\mail\Email
) - source
php/mail/Email.php
Description
Class Email
->
setFrom()
->
setCharset()
->
setSubject()
->
setTo()
->
setCc()
->
setBcc()
->
setBounceAddress()
->
setHeaders()
->
setMessage()
->
setHtmlMessage()
->
setTextMessage()
->
attach()
->
send()
- Sends the email. Internally we build a MimeMessage
setFrom(string $email, string $name, string $charset): $this
setCharset(string $charset): $this
setSubject(string $subject): $this
setTo(array $addresses): $this
setCc(array $addresses): $this
setBcc(array $addresses): $this
setBounceAddress(array $email): $this
setHeaders(array $headers): $this
setMessage(string $message): $this
setHtmlMessage(string $message): $this
setTextMessage(string $message): $this
attach(string|File|Stream $content, string $contentType, string $name, string $description): $this
send(php\mail\EmailBackend $backend): string
Sends the email. Internally we build a MimeMessage which is afterwards sent to the SMTP server.