• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

PHP mail()

D

dbgrebey

Guest
mail() not working in PHP script.

I read this:

When mail is sent from PHP script, PHP
usually uses 'sendmail' binary. Plesk has it's own sendmail wrapper, so
/usr/sbin/sendmail should be symbolic link which points to "$QMAIL_ROOT_D/bin/sendmail", please check it.
...but not fully understanding what that means. i.e. symbolic link?

Thanks,
DBG
 
A symbolic link is like a shortcut in Windows.

use:

Code:
man ln

To find out more about the ln command which you use to create links like this. (ln -s TARGET LINKNAME where TARGET is what you are linking to, and linkname is the name of the link)

Thus if qmail's sendmail file is in /var/qmail/bin/sendmail (that's the "$QMAIL_ROOT_D/bin/sendmail" bit but it may be different for you) then to make a symbolic link to that file from /usr/sbin/sendmail you would issue the command

Code:
ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail

(At least I think that's right! I always get things the wrong way around with ln! Always make sure you backup any existing file before playing with links! You have been warned! Do not assume I'm right. Use at your own risk)
 
Back
Top