Jump to content

unable to load phpmailer v5.1 - no warnings, no errors


MarioApprentice

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.