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.

Trying to Send Email from a PHP Script

Discussion in 'E-mail Discussions' 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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page