MarioApprentice Posted March 17, 2013 Share Posted March 17, 2013 Hi everyone. I'm having a lot of trouble with loading phpmailer. All my files are on bytehost and for the last few day, i've tried to send mail with this extension and repeaditly failed but just now I have managed to send a mail from localhost with phpmailer. But from a host, it doesn't work. I wouldn't even load the files with the call require_once('PHPMailer_v5.1'). I just get a blank screen, no warnings and no messages. Does anyone know what seems to be the problem? Also, the sendmail_path in php.ini isn't the same on host and on the localhost. I've changed it in the class.phpmailer.php file. Did i make a mistake with that or is that the way to set up mail on host? Thank you in advance for all answers! Quote Link to comment https://forums.phpfreaks.com/topic/275766-unable-to-load-phpmailer-v51-no-warnings-no-errors/ Share on other sites More sharing options...
MarioApprentice Posted March 17, 2013 Author Share Posted March 17, 2013 I didn't solve the problem but i read the readme file of phpmailer what i didn't do the last time. i'm an idiot. Anyway, it said that i have to set the include_path so that php know where to find phpmailer. I did that with the ini_set() function but still with no success to successfully load the mailer. Ive used $_SERVER['DOCUMENT_ROOT'] which gives me a path beyond my public_html on the host and i used it but still doesn't work. I've also used th .: notation to tell php to look for files from the current directory and still, the page chrashes upon require_once('PHPMailer_v5.1'). If anyone has a suggestion on what to do, please tell. Quote Link to comment https://forums.phpfreaks.com/topic/275766-unable-to-load-phpmailer-v51-no-warnings-no-errors/#findComment-1419161 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.