PHPMailer::set

Advertisement

Summery Summery

Set or reset instance properties.

Syntax Syntax

PHPMailer::set( string $name, mixed $value = '' )

Description Description

You should avoid this function – it’s more verbose, less efficient, more error-prone and harder to debug than setting properties directly. Usage Example: $mail->set('SMTPSecure', 'tls'); is the same as: $mail->SMTPSecure = 'tls';

Parameters Parameters

$name

(Required) The property name to set

$value

(Optional) The value to set the property to

Default value: ''

Return Return

(boolean)

Source Source

File: wp-includes/class-phpmailer.php


			

Advertisement

Advertisement

Leave a Reply