My Blog

My WordPress Blog

Kirim Email

Tes kirim email

 
[insert_php]
ini_set( ‘display_errors’, 1 );
error_reporting( E_ALL );
$from = “kirimemail@niagahoster.org”;
$to = “waryanto@hostinger.com”;
$subject = “Mengecek PHP Mail”;
$message = “PHP mail berjalan dengan baik”;
$headers = “From:” . $from;
mail($to,$subject,$message, $headers);
echo “Pesan email sudah terkirim.”;
[/insert_php]