Cannot use Gmail smtp from Azure Cloud Service

后端 未结 5 1956
星月不相逢
星月不相逢 2020-12-10 12:49

My code for sending email through Gmail\'s smtp:

SmtpClient client = new SmtpClient(\"smtp.gmail.com\", 587);
client.EnableSsl = true;
client.UseDefaultCrede         


        
5条回答
  •  隐瞒了意图╮
    2020-12-10 13:37

    Like said before your username should contain "@googlemail.com". In my code (java) I'm using port 465 to sent mails through google mail.

提交回复
热议问题