Skip to content

Latest commit

 

History

History
146 lines (101 loc) · 2.18 KB

File metadata and controls

146 lines (101 loc) · 2.18 KB

Email

  • class Email (php\mail\Email)
  • source php/mail/Email.php

Description

Class Email


Methods


Methods

setFrom()

setFrom(string $email, string $name, string $charset): $this

setCharset()

setCharset(string $charset): $this

setSubject()

setSubject(string $subject): $this

setTo()

setTo(array $addresses): $this

setCc()

setCc(array $addresses): $this

setBcc()

setBcc(array $addresses): $this

setBounceAddress()

setBounceAddress(array $email): $this

setHeaders()

setHeaders(array $headers): $this

setMessage()

setMessage(string $message): $this

setHtmlMessage()

setHtmlMessage(string $message): $this

setTextMessage()

setTextMessage(string $message): $this

attach()

attach(string|File|Stream $content, string $contentType, string $name, string $description): $this

send()

send(php\mail\EmailBackend $backend): string

Sends the email. Internally we build a MimeMessage which is afterwards sent to the SMTP server.