Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jun 2004
    Posts
    61

    Default php mail() function not sending mail

    I'm putting this in the WHM forum because I used easyapache to configure php with phpsuexec. I have the mail() function enabled in WHM, and this was working for some time, but I have just been alerted that php's mail() function on this server no longer sends emails. I haven't made any changes to apache or php. I'm running php 4.4.2 configured with:

    $ ./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-bcmath --enable-calendar --enable-ftp --enable-magic-quotes --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --enable-versioning --with-zlib --with-gd --with-jpeg-dir=/usr/ --with-png-dir=/usr/

    Same script sends emails on other servers, but I have no way of finding out the php version or whether they use phpsuexec.

  2. #2
    Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    675

    Default

    Do you have the Tweak Settings - prevent nobody messages from going out? If you do make sure this option is off.
    Upload Guardian 2.0 - Sign up for our early beta
    ServerProgress - Server security, consulting and assistance

  3. #3
    Member
    Join Date
    Jun 2004
    Posts
    61

    Default

    Yes, I'm sorry, I wasn't clear. That's what I meant when I said I had the mail() function enabled in WHM.

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Check whether you have a file /etc/eximmailtrap - if that exists, delete it and then edit /var/cpanel/cpanel.config and set eximmailtrap=0
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. E-mail not going on same server sites using php mail() function
    By muzaffar in forum E-mail Discussions
    Replies: 1
    Last Post: 06-29-2009, 01:48 PM
  2. mail() function not sending email
    By netnameus in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 09-26-2006, 03:55 PM
  3. PHP mail() function
    By pajafumo in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-07-2005, 05:13 PM
  4. php mail(); function doesn't work when disabling NOBODY from sending emails
    By ecwebtechie in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-02-2005, 11:07 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube