Sending emails with PHP
Sending an email is easy using PHP. Create a new file, copy and paste this code, and give it a spin!
<?php // Prepare the data $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com'."rn". 'Reply-To: webmaster@example.com'."rn". 'X-Mailer: PHP/'.phpversion(); // Send the email mail($to, $subject, $message, $headers); ?>