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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -