Enable PHPMail logging in Plesk Windows
This article will show you how to enable PHPMail logging within your Plesk Windows Virtual Private Server.
If you want to check your PHPMail() logs, simply follow the steps below to get started.
Please note: the following article was originally created for our current generation of Virtual Private Servers. As such, these instructions may not be relevant to our previous generation of Virtual Private Servers.
Start by logging into Plesk.
Next, click Websites & Domains within the left-hand menu.
Select the domain associated with your mailbox.
Click PHP Settings.
Add the following command to the Additional configuration directives field:
mail.log = c:\Inetpub\vhosts\your-domain.co.uk\httpdocs\phpmail.log
Be sure to change your-domain.co.uk to your domain name.
Once done, click Apply to save your changes.
Important: you must disable PHPMail logging once you have finished with it. Otherwise, it will continue logging and will use up your server’s disk space.