PHP Mailer Could not load language file and Email Body Empty -


hi working php mailer , without doing code changes when send email , email body empty . debug code , found in mailer object

[errorinfo] => not load language file 

then checked class.phpmailer.php function setlanguage file path

mailer/language/phpmailer.lang-en.php 

in project language file in

/var/www/html/my_project/include/mailer/language/phpmailer.lang-en.php 

so don't know why php mailer cannot identify file . need absolute path .

i haven't done changes , error appeared , email body empty . email going nothing in body . can mail server problem ? not sure because haven't done changes.

you can fix manually include path laguage folder

$mail = new phpmailer(); $mail->setlanguage("en", 'includes/phpmailer/language/'); 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -