You can configure the SMTP server or can use Gmail SMTP to send email. But sometime you face the error read as ‘Failure sending mail.’ , though you have added correct configuration and code to send email is correct. And then you wonder what went wrong due to which email not sent to recipient. Exception Detail and Reason: If you check the exception details then it read like: An attempt was made to access a socket in a way forbidden by its access permissions 173.194.79.108:587 This issue may be due to firewall or Antivirus blocking your port to send mail. Solution: Disable Firewall or Antivirus which is blocking port to send mail. If you are using McAfee then unblock McAfee port blocking for outgoing SMTP mail as mentioned below: · Go to system tray and right click on McAfee icon and select VirusScan Console · Right click on Access Protection and select Propert...