123 Reg Support

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.

Step 1 of 6

Start by logging into Plesk.

Step 2 of 6

Next, click Websites & Domains within the left-hand menu.

Step 3 of 6

Select the domain associated with your mailbox.

Step 4 of 6

Click PHP Settings.

Step 5 of 6

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.

Step 6 of 6

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.