IIS 7 and Above
Configured Gmail in SMTP
Last post Sep 10, 2014 04:36 AM by Pengzhen Song - MSFT
Sep 02, 2014 10:14 AM|mahaborn4u|LINK
I have configured my gmail account in IIS->SMTP
Reference : http://www.vsysad.com/2014/01/configure-iis-smtp-server-to-use-gmail-to-forward-messages/
To test the SMTP,
I have used powershell command
Issue 1: when i use below command Mail will insert in inetpub/mailroot/Queue not send to end user
Send-MailMessage -SMTPServer localhost -To firstname.lastname@example.org -From email@example.com -Subject "This is a test email" -Body "Hi, this is a test email sent using Gmail as a smart host"
I dont know why it insert in Mail Queue
Issue 2: when i changed above command localhost-IP address or computer name.I'm getting error
Send-MailMessage -SMTPServer system ip -To firstname.lastname@example.org -From email@example.com -Subject "This is a test email" -Body "Hi, this is a test email sent using Gmail as a smart host"
Error : Unable to read data from the transport connection: net_io_connectionclosed
If anyone Pls help me to solve it
Note : Windows Firewall Off also disbale the Antivirus also
Sep 03, 2014 03:48 AM|Pengzhen Song - MSFT|LINK
If there is no smtp server running, the mail will insert in "Queue" folder. Please check the port issue or Dns issue:
telnet localhost 25
For more information, please refer to the similar discussion:
Sep 04, 2014 08:51 AM|mahaborn4u|LINK
telnet smtp.gmail.com 25 or 587
Both are port not opening in my system
Then how mail will send?pls help me solve?
Note : windows firewall also virus disabled
Sep 10, 2014 04:36 AM|Pengzhen Song - MSFT|LINK
smtp.gmail.com should be the smart host. We should make sure our smtpserver works normally.
Deliver e-mail to SMTP server: to deliver e-mail messages immediately. This requires an operational SMTP server for which the user has credentials.
Please refer to the document: