email - Change mailed-by header in PHP mail -


I have configured several headers in the mail () function, sender's name, and other fields But, in the mail-in field in Gmail, I see the hostname of my server, even if I have set the mail to headers apart ... can it change Is there a way, or am I specifying the wrong header to affect the change?

Existing Headers:

 From: no -reply@example.com Mail-In: example.com Ex-Mailer: Example /1.0 

If you send the sender headers, then the problem will be easy to diagnose. But the header must be "x-mailer", which can be set to the mail-in field, as far as I know. If that does not work, then post your existing headers and we can help you / better.

Edit:

By doing some further research, the 5th parameter with the "-f" flag looks like this:

mail ($ $, $ message, $ body, $ header, '-fnoreply@yourmailer.com');

What is likely is an email address, so you have to see which values ​​it accepts. I have received this information.

But reading that what you want can not be.

-fname defines the name of "person" (i.e. the sender of the mail). -f can be used only by "trusted" users (normally root, daemon, and network), or if you are trying to become, that person is just like you.

I will see if I can not bend over anything.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -