Search Engine: Elastic

Article ID: 127415, created on Nov 13, 2015, last review on Nov 13, 2015

  • Applies to:
  • Plesk Automation 11.5


Customer is trying to use php script to send mail notification using mail() function.

The following error is displayed when scipt called:

PHP Warning:  mail(): SMTP server response: 501 5.5.4 Invalid Address in D:\CustomerData\\httpdocs\mail.php on line 9


The following configuration is applied in php.ini:

sendmail_from = @adminemail@


To use custom FROM field specified in script comment the line in php.ini:

;sendmail_from = @adminemail@

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF