How to make a claim with the website, went to e-mail gostinka, or other special mail?

Now the letters come in the mail from the website, but it is desirable that they come with some other mail or mail hosting, does it make sense to bother to do this(if Yes - then tell me how or where to look, to read) or if it works better not to touch?)
March 19th 20 at 09:19
1 answer
March 19th 20 at 09:21
<?php 
$to = "<mail@example.com>, " ; // Recipient

$subject = "email Header"; 

$message = ' <p>Text letter</p> </br> <b>1st place </b> </br><i>2nd place </i> </br>';

$headers = "Content-type: text/html; charset=windows-1251 \r\n"; 
$headers .= "From: who is the letter From <from@example.com>\r\n"; 
$headers .= "Reply-To: reply-to@example.com\r\n"; 

mail($to, $subject, $message, $headers); 
?>


As a variant of this code in php to send .

Find more questions by tags HostingPHPAJAX