电子邮件回复者

Hey, I have people registering on my website with their e-mail id. What is the best way to automatically send them e-mails as soon as they register?

Read their email address from the proper post field when your registration form is submitted. Create an email object and send it to the email address. It's likely that no one will just hand you code unless you actually give it a shot yourself.

<?php

$emailAddress = $_REQUEST['emailFieldName'];
$name = $_REQUEST['nameField'];
$subject = 'Welcome to Website Name';
$fromAddress = 'noreply@mydomain.com';

$messageBody = 'Dear ' . $name;
$messageBody .= "
" . 'Welcome to my Forum (or whatever)....';
$messageBody .= 'Add more lines using $messageBody .='; 

mail($emailAddres, $subject, $messageBody, 'From: ' . $fromAddress);
?>