Its the proper way how to send a mail that will not be a span at all. all you have to do is use Name@Site.com
like Contact@sarthak.com problem solved
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$to = 'yourMail1@gmail.com' . ', '; | |
$to .= 'yourMail2@gmail.com'; | |
$subject = 'The vowers'; | |
$message = $_POST['comments']. "<".$_POST['email'].">"; | |
$headers = 'From: contact@thevowers.com'; | |
$headers = htmlspecialchars($headers); | |
$message = htmlspecialchars($message); | |
$mail= mail($to, $subject, $message, $headers); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment