Hi,

I have been trying to send mail messages from PHP. I have been running PHP on a RedHat server for a year or so now and never had anything but a great experience.

However now I have discovered the misery of trying to setup sendmail. I have spend a lot of time understanding the configuration methodology for sendmail and have worked out how to alter it so that it relays mail through my providers SMTP server. I did this by adding the line:

define(SMART_HOST',mail.planet.nl')

I also installed the appropriate modules to be able to compile the sendmail.cf file from my altered sendmail.mc file. As far as I can tell nothing is going wrong.

However no mail I send from PHP (or any regular email application) gets through. I checked in the maillog file and I can see the mails. I am not sure if this gives any extra information but in the record it says 'stat=queued'.

Does anyone know how I can solve my problem? Or does someone have a sendmail.mc file for relaying through a providers SMTP server which does work? I am used to applications giving some kind of error if there is a problem but I am getting nothing out of sendmail so I am completely lost to know what action I should take next.

Thanks in advance for any help!

DaveTshave.

    24 days later

    I don't think this is php problem..
    check your hosts file..and make sure you have set hostname properly..

    you can also check here

    http://sendmail.org/faq/

      a month later

      I have also been getting 'stat=queued' in my /var/log/maillog file when sending emails from PHP. This is happening on my FreeBSD 4.8 machine but also think that it is not a PHP issue.

      I did not find an answer at sendmail.org and surprisingly there is not help on the internet for what causes the sendmail to que messages.

      Did you find an answer davetshave? I would like to know if someone has some help on this issue.

        Write a Reply...