PHPMailer::setLanguage
Set the language for error messages.
Returns false if it cannot load the language file. The default language is English.
Signature
public function setLanguage([string
$langcode = 'en',
[string
$lang_path = '']] )
Parameters
$langcode
— string
ISO 639-1 2-character language code (e.g. French is "fr")$lang_path
— string
Path to the language file directory, with trailing separator (slash)
Returns
- boolean