Hello. Just signed up today and almost as new to PHP, so please forgive any basic ignorance!
I run a PHP Mailer for a form on my website which most of the time runs perfectly well.
However, sometimes when we test it (from various email adresses and ISPs), the email generated to us submitting the form data is rejected with the message “SMTP server response: 554 <our email address>: Recipient address rejected” … etc.
I cannot understand why this is happening intermittently, especially as no changes are being made to the code, so we contacted out server provider to see if this was a server problem.
Without any explanation (as they “do not support scripting issues”!), they have suggested that I need to add a “-f” on the variable or email address where the email is being sent from, and they gave me the following example:
I have no idea what this is supposed to do and cannot find any reference to it anywhere, but maybe I’m just looking in the wrong places! Reluctant to change code when I don’t know why!
Any help would be greatly appreciated.