file_get_contets() php function got error

  • Hi,

    I want to use PHPmailer to send emails.

    My config is good, but i got error message. Probably i need to enable "allow_url_include". I using php7.1 with phpmailer on my I-MSCP server.

    Error code:

    Warning: file_get_contents(sample.html): failed to open stream: No such file or directory in /var/www/virtual/ on line 401 Message could not be sent. Mailer Error: Message body empty

    This file is valid, but my site can't open it. Does any idea why blocking file_get_contents() ?