D
D
Dmitry2017-07-06 09:40:34
PHP
Dmitry, 2017-07-06 09:40:34

How to remove the server name from the FROM header when sending mail with the mail() function?

I ran into a problem, I send letters from my own server (VPS) with the mail () function
in the header I indicate: From: Test <[email protected]>
in php.ini it is specified

sendmail_path = /usr/sbin/sendmail -t -i -f [email protected]

But when testing, the letter comes from the following:
[email protected] <[email protected]>
How to get rid of the server's mail in the incoming letter?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question