Email Confirmation PHP


សំរាប់ជារៀងរាល់ពេលធ្វើការចុះឈ្មោះ ទៅនិងប្រពន្ធ័និមួយៗ។ ដើម្បីបញ្ចាក់ថា ម៉ែលដែលអ្នក​ចុះឈ្មោះ​នោះ ជា​មែលដែលពិត​ប្រាកដ គេមាន វិធីច្រើនក្នុងការគ្រប់គ្រង​ តែអី្វដែលនិយម គឺ ធ្វើតាម Email Verification។ ខាងក្រោមនេះ​ នឹងរៀបរាប់ពីការ Config លើ Mail server Localhost។

  1. ទាញយក ឧទាហរណ៍ registeration with Comfirmation.php ឬ
  2. ទាញយក send mail.php
  3. Server sendmail ទាញយក ។


ខាងក្រោមនេះ​ ជាការ Config ដើម្បីអោយមានដំណើរការ៖

  • ក្នុង sendmail.ini

[sendmail] 
smtp_server=smtp.gmail.com 
smtp_port=465 
smtp_ssl=ssl 
default_domain=localhost 
error_logfile=error.log 
auth_username=noreply@gmail.com 
auth_password=*********
pop3_server= 
pop3_username= 
pop3_password= 
force_sender=noreply@gmail.com 
force_recipient= 
hostname=localhost

  • Config php.ini ក្នុង​ Apache និង PHP (C:\wamp\bin\apache\apache2.4.9\bin)

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = ; http://php.net/smtp-port
;smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = you@yourdomain
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path ="C:\wamp\sendmail\sendmail.exe -t -i"

  • Config Apache Modules

  1. Check on ssl_module

  • Config php extendsions

  1. Check on php_openssl
  2. Check on php_sockets

  • ចំណាំ បើមិនទាន់ដើរ

  1. Right click on sendmail.exe
  2. Properties
  3. Compatibility
  4. Change the configuration for all users
  5. Execute as Windows XP SP 3
  6. Execute as adminitrator
  1. ទៅគេហទំព័រនេះ ដែលបានចូលជា Account ចង់ផ្ញើទៅគេ​នោះ http://www.google.com/settings/security/lesssecureapps
  2. ចុចលើ Turn on
  1. ចូលទៅកាន់ Settings របស់ Gmail Account
  2. Forwarding and POP/IMAP
  3. IMAP Access: Enable
បន្ទាប់ពីនោះ ធ្វើការ Restart All Services​ ក្នុង Wamp server របស់អ្នក។
ប្រភព៖ ទីនេះ

សំរាប់ការស្រាវជ្រាវខ្លួនឯង

អំពីម្ចាស់ប្លក់

វ៉ារីយ៍[ហេង]

សួស្តី​អ្នក​ទាំងអស់​គ្នា​រឿងរ៉ាវ​ផ្សេងៗ​មាន​ច្រើន ​ក្នុង​ជីវិត​មា្នក់ៗ​ហើយ​ខួរក្បាល​យើង​មិន​អាច​ទទួល​រាល់​ពត៌មាន​ទាំងអស់​នោះ​បាន​ឡើយ​។​លុះត្រាតែ​ពត៌មាន​នោះ​ធ្វើអោយ​មាន​ការប៉ះពាល់​ចិត្ត​ខ្លាំង​ទើប​អាច​ដិតដាន​ជាប់​មិនងាយ​នឹង​រលុប​។ ណាមួយ​នោះ​ខ្ញុំ​ចង់​រៀន​របស់​ដែល​ថ្មី ​ដូចជា​ប្លក់​នេះឯង​[ចាស់​គេ​ថ្មី​យើង​]។ សូមអរគុណ​ដែល​ចំណាយ​ពេលអាន​អត្ថបទ​នេះ។

Post a Comment

សូម​មាន​យោបល់​ខាងក្រោម​នេះ៖

 
ROOT 2S © 2016 - រចនាដោយ គង់ សុវ៉ារីយ៍