Below will use windows 7  as an example, but it is similar if we would like to set the web server in linux

  1. Download sendmail application from below and follow the instruction list in the website
    http://glob.com.au/sendmail/
  2.  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
  3. Edit sendmail.ini in your installed folder. Below I will use google mail as an example since it is popular 😛
  4. after the setting are done, restart your web server (for example, I restart apache2)
  5. Now we could edit out php file

Leave a Reply