Documentation

PHPMailerExtended extends PHPMailer

Table of Contents

sendEmail()  : mixed
Sends an email
setSMTP()  : mixed
Sets SMTP

Methods

sendEmail()

Sends an email

public sendEmail(string $from, string $to, string $subject, string $body[, string $fromName = null ][, string $toName = null ][, array<string|int, mixed> $cc = [] ][, array<string|int, mixed> $bcc = [] ][, string $replyTo = null ][, string $replyToName = null ][, mixed $attachments = null ]) : mixed
Parameters
$from : string
$to : string
$subject : string
$body : string
$fromName : string = null
$toName : string = null
$cc : array<string|int, mixed> = []
$bcc : array<string|int, mixed> = []
$replyTo : string = null
$replyToName : string = null
$attachments : mixed = null

attachment object or array of attackments objects: ->type = s(tring) | f(ile) ->name = file-name ->content = path-toFile | content-string

Return values
mixed

setSMTP()

Sets SMTP

public setSMTP(object $config) : mixed
Parameters
$config : object

with propertieshost

  • host
  • port
  • username
  • password
  • security: tls|ssl
Return values
mixed

Search results