古詩詞大全網 - 成語經典 - 求簡單的PHP提交信息源碼

求簡單的PHP提交信息源碼

補充下:要使的PHP的MAIL函數可以使用,必須安裝有sendmail程序,或者QMAIL等程序.

再調用程序源碼:

<?php

$to = 'nobody@example.com';

$subject = 'the subject';

$message = 'hello';

$headers = 'From: webmaster@example.com' . "\r\n" .

'Reply-To: webmaster@example.com' . "\r\n" .

'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);

>

來實現發信功能