- Code: Select all
<?php
$to = "this@email.com";
$subject = "test Email";
$message = "Just a test to see if it works.";
$from = "that@email.com";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers)
?>
Moderators: macek, egami, gesf
<?php
$to = "this@email.com";
$subject = "test Email";
$message = "Just a test to see if it works.";
$from = "that@email.com";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers)
?>
$headers = "MIME-Version: 1.0" . "\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\n";
$headers .= "From: $from" . "\n";
Users browsing this forum: No registered users and 1 guest