Use sendmail to send activation_key mail automatically in php – automatically send email php
Below will use windows 7 as an example, but it is similar if we would like to set the web server in linux
- Download sendmail application from below and follow the instruction list in the website
http://glob.com.au/sendmail/ - Edit php.ini in your php installed folder
(1) comment SMTP/smtp_port setting since we will set in sendmail.ini
(2) assign the correct path for sendmail
- Edit sendmail.ini in your installed folder. Below I will use google mail as an example since it is popular 😛
- after the setting are done, restart your web server (for example, I restart apache2)
- Now we could edit out php file