Configured Gmail in SMTP [Answered]RSS

3 replies

Last post Sep 10, 2014 04:36 AM by Pengzhen Song - MSFT

  • Configured Gmail in SMTP

    Sep 02, 2014 10:14 AM|mahaborn4u|LINK

    Hi all

    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 xxx@gmail.com -From xxx@gmail.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 xxx@gmail.com -From xxx@gmail.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

    MailNotSendusingPowershell

  • Re: Configured Gmail in SMTP

    Sep 03, 2014 03:48 AM|Pengzhen Song - MSFT|LINK

    Hi,

    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:

    http://forums.iis.net/t/955294.aspx?SMTP+Mail+stuck+in+queue

    http://community.office365.com/en-us/f/158/t/168009.aspx

    MailNotSendusingPowershell

    We are trying to better understand customer views on social support experience. Click HERE to participate the survey.
    Thanks!
  • Re: Configured Gmail in SMTP

    Sep 04, 2014 08:51 AM|mahaborn4u|LINK

    Hi  

    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

    MailNotSendusingPowershell

  • Re: Configured Gmail in SMTP

    Sep 10, 2014 04:36 AM|Pengzhen Song - MSFT|LINK

    Hi,

    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:

    http://www.iis.net/learn/application-frameworks/install-and-configure-php-on-iis/configure-smtp-e-mail-in-iis-7-and-above

    http://www.blackbaudknowhow.com/tech-tips/how-to-install-and-configure-smtp.htm

    MailNotSendusingPowershell

    We are trying to better understand customer views on social support experience. Click HERE to participate the survey.
    Thanks!