Below script is simple email script in php. by using mail function
<?php
// Email destination address
$to = 'to@email.com';
// Email Subject
$subject = 'PHP Simple Mailer Example';
// Email message
$content = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Etiam sit amet elit vitae arcu interdum ullamcorper.';
// Additional headers
$headers = 'MIME-Version: 1.0' . "\n";
$headers .= 'Content-type: text; charset=iso-8859-1' . "\n";
$headers .= 'From: from@email.com';
mail($to,$subject,$content,$headers);
?>
No comments:
Post a Comment