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.

php mail()

Discussion in 'E-mail Discussions' started by cPanelNick, Jul 12, 2003.

  1. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    If anyone is having problems with php mail(), please run the following

    /scripts/updatenow
    /scripts/updatephpconf


    This should resolve the problem.

    cPanel.net Support Ticket Number:
     
  2. thedavid

    thedavid Well-Known Member

    Joined:
    Nov 22, 2002
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    Thanks!

    I was just working with a customer on this now, and that fixed it. I think I've gotten the majority of the exim bugs out of the way, too.

    -David

    cPanel.net Support Ticket Number:
     
  3. tcwebguy

    tcwebguy Active Member

    Joined:
    Sep 28, 2001
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    0
    THANK YOU!!

    Thank you so much for the tip. This has saved me about 100 phone calls from angry customers.

    Thedavid, you deserve a good samaritan award!

    :)

    cPanel.net Support Ticket Number:
     
  4. steveswaldo

    steveswaldo Member

    Joined:
    Apr 8, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    does not work!

    cPanel.net Support Ticket Number:
     
  5. thedavid

    thedavid Well-Known Member

    Joined:
    Nov 22, 2002
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    Look in your php.ini file, there should be a section like this:

    [mail function]
    ;SMTP = localhost ;
    ;sendmail_from = me@localhost.com ;
    sendmail_path = /usr/sbin/sendmail -t -i ;


    If the sendmail path is different, you'll need to change it to that in order to get it to work.

    -David

    cPanel.net Support Ticket Number:
     
  6. MySundown

    MySundown Well-Known Member

    Joined:
    Jun 2, 2003
    Messages:
    128
    Likes Received:
    0
    Trophy Points:
    16
    Lay off the caffeine, k?

    cPanel.net Support Ticket Number:
     
  7. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    Not sure about you but how is everyone supposed to remember all these run this and run that scripts? Why would we need to run all these commands continuously? Cant it just be included in the updates instead of asking us to run 20 commands on a daily basis?

    cPanel.net Support Ticket Number:
     
  8. mmkassem

    mmkassem Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    390
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Egypt
    Re: Re: php mail()

    :D:D
    this command is to re-config the php.ini in case the mail() is not working. So this should be done daily.

    I think /scripts/upcp edit the php.ini too.
     
  9. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    18
    Re: Re: Re: php mail()

    /scripts/upcp does check if a php.ini file is present I think, but if you have Zend optimizer installed it looks in the wrong location:

    From my upcp e-mails :

    x - SKIPPING /usr/local/lib/php.ini (file already exists)

    I have Zend optimizer installed and PHP will then use the php.ini in this location:

    /usr/local/Zend/etc/php.ini

    Maybe this is one of the reasons why people run into problems with the latest upgrades.

    If you have Zend optimizer installed make sure that /usr/local/lib/php.ini is a symlink to usr/local/Zend/etc/php.ini
     
    #9 jamesbond, Jul 14, 2003
    Last edited: Jul 14, 2003
  10. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Re: Re: php mail()

    You can just upgrade as well :)

    cPanel.net Support Ticket Number:
     
  11. steveswaldo

    steveswaldo Member

    Joined:
    Apr 8, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    bah this is so lame. exim 3 worked just fine now everything is screwed :( someone help. the support ticket isent getting anywhere...

    cPanel.net Support Ticket Number:
     
  12. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    Re: Re: php mail()

    Whining as usual :) Glad to see you back. :D

    cPanel.net Support Ticket Number:
     
  13. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    Re: Re: Re: php mail()

    What a mess!

    cPanel.net Support Ticket Number:
     
  14. Mivo

    Mivo Member

    Joined:
    Aug 19, 2001
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Which php.ini to edit? I found 3 instances of php.ini on the server: 1 at /usr/local/lib/ and the other 2 are located at the 3rdparty/ folder of cpanel.

    cPanel.net Support Ticket Number:
     
  15. mmkassem

    mmkassem Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    390
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Egypt
    /usr/local/lib/php.ini

    /scripts/upcp already do this job.

    cPanel.net Support Ticket Number:
     
  16. dennis

    dennis Well-Known Member

    Joined:
    Apr 22, 2003
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Singapore
    i done this but its not working for me... :( my php mail has been done for 1 day

    cPanel.net Support Ticket Number:
     
  17. djplasma

    djplasma Member

    Joined:
    Nov 11, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    BC, Canada
    What about the exim command? I know what sendmail is, but what about exim?
     
  18. djstudio

    djstudio Well-Known Member

    Joined:
    Oct 23, 2002
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    i have still problem with this~ php mail() thing~ i cant send mail man~ i have suexec and phpsuexec running~

    php.ini has the sendmail thing but i can just send and email with the mail.php function.:mad:
     
  19. horrighs

    horrighs Well-Known Member

    Joined:
    Mar 8, 2003
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    any idea when enable this line:

    sendmail_path = /usr/sbin/sendmail -t -i

    i start getting *lots* of dead exim/sendmail process. like up to 1000. as soon as i disable it the process start going away.
     
  20. albatroz

    albatroz Well-Known Member

    Joined:
    Mar 6, 2003
    Messages:
    258
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Virtual Orbis / Peru
    cPanel Access Level:
    Root Administrator
    I am also with the same problem, can´t use phpmail
    and everything in my php ini files seem to be OK.
    I wonder if there could be a problem with the Tweak Settings/Tweak Security options

     
Loading...

Share This Page