Banyak cara seting email di php dan yang di bawah ini adalah salah satunya, selamat mencoba ya..?
<?php
$to = “recipient@example.com”;
$subject = “Hi!”;
$body = “Hi,\n\nHow are you?”;
$headers = “From: sender@example.com\r\n” .”X-Mailer: php”;if (mail($to, $subject, $body, $headers)) {
echo(”Message sent!”);
} else {
echo(”Message delivery failed…”);
}
?>



0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.