Skip to content

Instantly share code, notes, and snippets.

@sarthology
Created December 29, 2013 20:15
Show Gist options
  • Save sarthology/8174322 to your computer and use it in GitHub Desktop.
Save sarthology/8174322 to your computer and use it in GitHub Desktop.
Its the proper way how to send a mail that will not be a span at all. all you have to do is use [email protected] like [email protected] problem solved
<?php
$to = '[email protected]' . ', ';
$to .= '[email protected]';
$subject = 'The vowers';
$message = $_POST['comments']. "<".$_POST['email'].">";
$headers = 'From: [email protected]';
$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