PHPMailer::addAnAddress

Advertisement

Summery Summery

Add an address to one of the recipient arrays or to the ReplyTo array.

Syntax Syntax

PHPMailer::addAnAddress( string $kind, string $address, string $name = '' )

Description Description

Addresses that have been added already return false, but do not throw exceptions.

Parameters Parameters

$kind

(string) (Required) One of 'to', 'cc', 'bcc', or 'ReplyTo'

$address

(string) (Required) The email address to send, resp. to reply to

$name

(string) (Optional)

Default value: ''

Return Return

(boolean) true on success, false if address already used or invalid in some way

Source Source

File: wp-includes/class-phpmailer.php


			

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.