PHPMailer::setLanguage

Advertisement

Summery Summery

Set the language for error messages.

Syntax Syntax

PHPMailer::setLanguage( string $langcode = 'en', string $lang_path = '' )

Description Description

Returns false if it cannot load the language file. The default language is English.

Parameters Parameters

$langcode

(Optional) ISO 639-1 2-character language code (e.g. French is "fr")

Default value: 'en'

$lang_path

(Optional) Path to the language file directory, with trailing separator (slash)

Default value: ''

Return Return

(boolean)

Source Source

File: wp-includes/class-phpmailer.php


			

Advertisement

Advertisement

Leave a Reply