2010-10-17 210 views

回答

0

當您提交註冊表格時,請從正確的帖子欄中閱讀他們的電子郵件地址。創建一個電子郵件對象並將其發送到電子郵件地址。除非你真的自己動手,否則沒有人會提供你的代碼。

1
<?php 

$emailAddress = $_REQUEST['emailFieldName']; 
$name = $_REQUEST['nameField']; 
$subject = 'Welcome to Website Name'; 
$fromAddress = '[email protected]'; 

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

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