Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Trying to Send Email from a PHP Script

Discussion in 'E-mail Discussion' started by PaulBennett, Dec 6, 2013.

  1. PaulBennett

    PaulBennett Registered

    Joined:
    Dec 5, 2013
    Messages:
    0
    Likes Received:
    0
    Trophy Points:
    0
    cPanel Access Level:
    Website Owner
    Mail forms have been working and providing a valuable function on my websites for many years - that is until I migrated to cPanel @GoDaddy.

    I've investigated* edited, reloaded, php.ini settings. Effectiveness is easily verified by the php function phpinfo() placed in body of an otherwise empty php file. Within the resulting 'CORE' parameters are locations of the program 'sendmail' and it's parameters -t -i for a linux server.

    However GoDaddy refuses to provide that sendmail program as a part of it's cPanel host servers, telling me I must "write my own code" instead as ?they? do not write code. OK

    But I know from 3 days of reading posts, that 'sendmail' is provided at other host providers using cPanel...how do I get a copy and install it?

    Incidently, /usr/sbin/, where sendmail is normally installed, is below my level of accessibility...my permission as a webmeister/moneyman is the level just below public_html.

    Godaddy's suggestion is for me to migrate back from cPanel to the server where I came from after 3 weeks of fixes to resume normality. Meanwhile I'm not the only one with this problem and I know there is always an answer.

    Help - I have other things to do besides fixing what shouldn't be broken - suggestions please.

    *Also see same-ish thread by gecasti
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,443
    Likes Received:
    1,962
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Unfortunately, we have no control over what limitations your hosting provider chooses to implement. You may want to try using the "Mail" functionality with PHP. You can search for "PHP mail test script" on a search engine and you should receive several examples of how to send out emails via PHP.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice