The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cant able to find Mail.php to include

Discussion in 'E-mail Discussions' started by Shaif, Dec 11, 2015.

  1. Shaif

    Shaif Registered

    Dec 11, 2015
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    I have setup exim mail in my server. I am trying to send mail the code is like

    Warning: require_once(Mail.php): failed to open stream: No such file or directory in /home/{Username}/public_html/{directory}/send-mail.php on line 3

    Fatal error: require_once(): Failed opening required 'Mail.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /{Username}/public_html/{directory}/send-mail.php on line 3

    I can able to send mails from domain/webmail. But I cant able to find PHP Mail function to use SMTP. In few forums its been given that the path can be found in PHP folder

    like php/Mail.php. Anyhow I cant find php file or mail.php in all the files. currently my include path code line is

    require_once 'Mail.php';
    I have given different paths. still not working. How can i actually check whether Mail.php is exists or not.

Share This Page