Skip to content

Counter: Counter Powered by  RedCounter Categories:

EMAIL FOR PHP

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…”);
}

?>

Posted in PHP.


0 Responses

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



Some HTML is OK

or, reply to this post via trackback.