Article ID: 117120, created on Sep 5, 2013, last review on Jun 6, 2016

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk 12.5 for Windows
  • Plesk 12.0 for Windows
  • Plesk 11.5 for Windows


PHP mail function does not work. I have php script that sends emails, but it does not work. In mail logs I got the following error:

    MAIL    MAIL FROM:<@adminemail@> SIZE=359   555 5.5.2 Syntax error.


Following information can be found in MailEnable SMTP-Activity log:

06/06/16 16:17:33   SMTP-IN F4263D896EF14A7EA44A0DB04E4D55FE.MAI    956   MAIL    MAIL FROM:<@adminemail@>    250 Requested mail action okay, completed   43  26  


  1. Check what PHP version is used by domain:

    Plesk Control panel->domains->>hosting settings->PHP
  2. Open PHP installation directory: C:\Program Files (x86)\Parallels\Plesk\Additional\PHPx where PHPx is installation directory of certain PHP version.

  3. Open php.ini and find this lines:

    [mail function]
    SMTP = localhost
    smtp_port = 25
    sendmail_from = @adminemail@
  4. Correct sendmail_from to valid email address like:

    sendmail_from = email@domain.tld

Search Words

php mail


pelsk upgrade

mail script

doesn't work

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 46a8e394d6fa13134808921036a34da8 85a92ca67f2200d36506862eaa6ed6b8 bd7fc88cf1b01f097749ae6f87272128 ed7be2b984f9c27de1d2dc349dc19c6d a766cea0c28e23e978fa78ef81918ab8 29d1e90fd304f01e6420fbe60f66f838 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 8b661cab116c79dbe6c4ac5bbdf1c8cb

Email subscription for changes to this article
Save as PDF