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


(string) (Required) The property name to set


(mixed) (Optional) The value to set the property to

Default value: ''

Return Return


Source Source

File: wp-includes/class-phpmailer.php




Leave a Reply

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