PHP Sendmail Setup with SMTP IIS and Windows Servers (Also XAMPP Windows)

Did you had problems setting up PHP on a Windows server which is running IIS and also running a SMTP server inside IIS? Have you faced problems sending mail from PHP scripts running on IIS server with IIS SMTP engine? By default IIS doesn't allow relaying SMTP mails if it comes from 3rd party products. So this problem is related to IIS SMTP "Relay Restrictions".

Social Media and Technology