SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2004
    Location
    Vancouver, B.C., Canada
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP mail not being delivered!

    Hi,

    A client has moved his site to a new server. No mail is being delivered from the web server. I'm assuming a mail package needs to be installed on the server. The PHP code is fine and worked on the previous server. I'm a noob when it comes to server management. What needs to be installed on the server so that the mail() function works?

    Thanks

  2. #2
    Trash Boat mkoenig's Avatar
    Join Date
    Aug 2007
    Posts
    1,232
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dumb question but php is installed correct?

    Have you tried sending it to some other email accounts? Some spam filters resolve ips and domains and if you just moved it may be getting confused and thinking you are trying to "forge" the from or something like that.

    I don't remember having to do anything? If you don't get an error like mail() function undeclared then the mail function should be working.

    Is there a firewall?

    Another good possibility is that it required register_globals to be on, and you have not changed that in the php.ini currently.

    register_globals should be off for security reasons, i would check anyway.

    Just use that old
    <? phpinfo(); ?>
    to see

  3. #3
    SitePoint Guru Ruben K.'s Avatar
    Join Date
    Jun 2005
    Location
    Alkmaar, The Netherlands
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you're on a *nix environment, check your sendmail configuration.
    If you're on a windows environment, you need to have an SMTP server installed to send mail

  4. #4
    SitePoint Enthusiast
    Join Date
    Aug 2004
    Location
    Vancouver, B.C., Canada
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm in a Unix enviroment, apache server. Would that mean that no SMTP server would need to be installed?

    We're hosting with Peer1. I got this back from their support team:

    " You actually have qmail as your MTA but in order to maintain compatibility qmail creates what is called a sendmail wrapper that looks like a sendmail executable which accepts normal sendmail arguments. This executables is located at: /usr/sbin/sendmail "

    But I don't see /usr/sbin/sendmail when looking at the server through FTP?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •