• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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