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.

I need help with PHP and mail()

Discussion in 'E-mail Discussions' started by icmc, Oct 27, 2013.

  1. icmc

    icmc Registered

    Joined:
    Oct 27, 2013
    Messages:
    0
    Likes Received:
    0
    Trophy Points:
    0
    cPanel Access Level:
    Website Owner
    Hi all

    Let's get this out of the way straight away

    I am not a programmer at all

    I don't have a clue about unix and or Linux

    The problem
    I have made a website and have one page which is a contact form . I have uploaded it and the page as such works fine until I press submit and I get the following error

    mail() has been disabled for security reasons .....

    In the error log in the PHP folder I have this

    [19-Oct-2013 20:54:51] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [19-Oct-2013 20:54:51] PHP Warning: mail() has been disabled for security reasons in /home/ianmcc/public_html/phpscript/contactformprocess.php on line 38

    The folder /usr/.... I just cannot find in the root nor any other folder


    Anyone out there in Web World who can assist???

    Thx in advance
    Ian
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,481
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes, your Hosting Provider should be able to assist you with this. They should be able to explain why mail() has been disabled for security reasons on their servers. :)
     
  3. george.markou13

    george.markou13 Registered

    Joined:
    Oct 30, 2013
    Messages:
    0
    Likes Received:
    0
    Trophy Points:
    0
    cPanel Access Level:
    Website Owner
    mail() function is not the best way to do this.
    Better use PhpMailer Class which is free and do the work fine!
     
Loading...

Share This Page