0
A
回答
1
<?php mail($email, 'thanks for your comment', 'many thanks, we will get back to you'); ?>
0
要發送的郵件,使用此代碼,
<?php
//define the receiver of the email
$to = '[email protected]';
//define the subject of the email
$subject = 'Test email';
//define the message to be sent. Each line should be separated with \n
$message = "Hello World!\n\nThis is my first mail.";
//define the headers we want passed. Note that they are separated with \r\n
$headers = "From: [email protected]\r\nReply-To: [email protected]";
//send the email
$mail_sent = @mail($to, $subject, $message, $headers);
//if the message is sent successfully print "Mail sent". Otherwise print "Mail failed"
echo $mail_sent ? "Mail sent" : "Mail failed";
?>
和激活碼,使用您的數據庫,創建電子郵件和電話號碼AUTO_INCREMENT表,當他登記在數據庫中,數據庫中將創建自動代碼並將該代碼發送至電子郵件,
相關問題
- 1. Microsoft Outlook 2010 - 自定義字段以指示電子郵件消息是發送給我還是發送給我
- 2. 通過電子郵件發送消息給Whatsapp/Tango/Kik/Viber
- 3. 發送確認電子郵件給誰填表格
- 4. PHP發送電子郵件給該人作爲確認
- 5. 發送自動發送電子郵件給特定值的下拉列
- 6. Java發送電子郵件bot與JOptionPane的自定義消息
- 7. 發送電子郵件給我發送WP電子商務
- 8. Drupal不發送確認電子郵件
- 9. 確認電子郵件不發送
- 10. 以PHP發送確認電子郵件
- 11. Php確認電子郵件不發送
- 12. 發送電子郵件確認SWFUpload
- 13. ASP.NET通過電子郵件發送給多個電子郵件
- 14. 發送電子郵件給匪徒電子郵件分機
- 15. 該電子郵件發送給哪個電子郵件地址?
- 16. 發送電子郵件給用戶
- 17. 在asp.net發送電子郵件給yahoo
- 18. 發送電子郵件給PayPal買家
- 19. HTML - 發送電子郵件給我
- 20. 如何發送電子郵件給trac?
- 21. 發送電子郵件給SSLProtocolException
- 22. 確定電子郵件發件人併發送電子郵件
- 23. 發送電子郵件使用PHP的電子郵件發送給多人
- 24. 早晨自動將電子郵件發送給打包商
- 25. 如何自動發送電子郵件給客戶註冊碼?
- 26. 設置消息ID與Play 2發送電子郵件!插件
- 27. 自動發送消息給調用者
- 28. 發送PHP確認電子郵件管理員電子郵件發送
- 29. 發送消息給組件?
- 30. 使用smtp發送電子郵件並設置消息ID