Now i have this to send an email
Code: Select all
$to = $to2;
$message = "<html><head><title></title></head><body>" . nl2br($message) . "</body></html>";
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'To: ' . $to2 . "\r\n";
$headers .= 'From: NET' . "<" . $from . ">" . "\r\n";
// $headers .= 'Cc: ' . "\r\n";
// $headers .= 'Bcc: ' . "\r\n";
mail($to, $subject, $message, $headers) or die("Email error");
}Thanks in advance