This is my code:
$to = ' to@mail.com '; $subject = 'test'; $body = 'test'; $header = 'MIME-Version: 1.0' . "\r\n"; $header .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $header .= "To: <$to>" . "\r\n"; $header .= 'From: from@mail.com \r\n'; mail($to, $subject, $body, $header);
The code works, it sends an email. But the sender is not the one I determined. The sender seems to be a web server. What am I doing wrong?
php email
user1885099
source share