A
A
Albert Tobacco2015-04-22 18:14:21
PHP
Albert Tobacco, 2015-04-22 18:14:21

Change header from when sending an email?

Here is what I have in the logs

Apr 20 12:47:23 myhost sendmail[11156]: t3K9lNYO011156: from=, size=1206, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]

How can I fix this [email protected] ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-04-23
@serzik

$head="From: Вася<[email protected]>\r\nReply-To: Вася<[email protected]>\r\nMime-Version: 1.0\nContent-Type: text/plain; charset=koi8-r\nContent-Transfer-Encoding: 8bit";
mail("$mail","$subj",$body,$head,"[email protected]");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question