1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

problem sending mail via php (oscommerce)

Discussion in 'Plesk for Linux - 8.x and Older' started by gotcha, Dec 6, 2005.

  1. gotcha

    gotcha Guest

    I got a funny problem sending mail via php.

    I use the standard mail() function from php which shows no error after the call. But none of the emails I want to send this way ever get to the receiver. But not only this they also don´t show up in ANY logfile (and I checked them all!!!).

    If I try to send mail via console everything is fine though.

    I already tried to change the php.ini path to sendmail which didn´t help.

    mx record shouldn´t be an issue because I don´t want to recieve emails.

    I also tried mchk without any result....

    my phpinfo says SMTP=localhost (Port 25)

    Maybe someone of the smart guys out there has a clue for me.

    thanx in advance
  2. gotcha

    gotcha Guest

    by the way...

    by the way I using a 1&1 root server which is a server completely configured by 1&1 with plesk preinstalled.
  3. Dmitry Frantsev

    Dmitry Frantsev Golden Pleskian

    Sep 19, 2005
    Likes Received:
    I can suggest you to check following things:

    1) network is permanently whitelisted on your server (Server -> Mail -> White List)

    2) Make sure that /usr/sbin/sendmail is a symbolic link to /var/qmail/bin/sendmail binary.

    3) If doesn't helped - check out if whole mailsystem works. E.g. try to send mails via webmail. Trace down delivering stages through the /usr/local/psa/var/log/maillog.

    4) If doesn't works anyway -> try to use /usr/local/psa/admin/sbin/mchk
    utility (--help for little info). It could rewrite all mail related configs and if problem is in misconfiguration - it should help. Do not
    forget to restart qmail after running mchk:
    # /etc/init.d/qmail restart

    Hope it will help