• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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