/ Published in: PHP
A simple example of how to send an email using PHP's build in mail() function.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function sendMail($from,$to,$subject,$body) { $headers = "From: $from"; $headers .= "Reply-To: $from"; headers .= "Return-Path: $from"; $headers .= "X-Mailer: PHP5\n"; $headers .= 'MIME-Version: 1.0' . "\n"; $headers .= 'Content-type: text/html; charset=utf-8' . ""; } ?>