mail(): SMTP server response: 550 The address is not valid error on hmailserver

550 Delivery is not allowed to this address

This error means that the sender is trying to send an email to an
address which he is not allowed to send to. This message is generated
after hMailServer has checked the IP range settings. As an example,
the default IP range configuration does not allow external users to
send messages to other external users. This is to prevent people from
using your server to send spam. So if an external user tries to send a
message to another external user, he will get this message.

That is the meaning of the error you are getting. This is from the hMailServer Documentation.

Can you try if the following will work?

<?php
mail('[email protected]','Test Email','This is a test email.',"From: [email protected]");
?>

If it doesn’t work, then it’s probably due to a misconfiguration in your hMailServer and you would need to check your hMailServer Logs.

Leave a Comment