Send email with php

Sending email with PHP and build-in function mail.

$to = "example@gmail.com";
$subject = "Test";
$body = "<b>Body</b> <i>of your message</i><br>";
$headers = "From: Georgern";
$headers .= "Reply-To: info@myserver.comrn";
$headers .= "Return-Path: info@myserver.comrn";
$headers .= "X-Mailer: PHP5n";
$headers .= 'MIME-Version: 1.0' . "n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "rn";
mail($to,$subject,$body,$headers);
Categories: PHP Tags: , ,
%d bloggers like this: