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

  • Applies to:
  • Plesk Automation 11.5

Symptoms

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\domain.com\httpdocs\mail.php on line 9

Cause

The following configuration is applied in php.ini:

sendmail_from = @adminemail@

Resolution

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

;sendmail_from = @adminemail@

Search Words

SMTP server response: 501 5.5.4 Invalid Address

501 5.5.4

windows php mail

Invalid Address

PHP Warning

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF