app.yaml文件
runtime: aspnetcore
env: flex
# This sample incurs costs to run on the App Engine flexible environment.
# The settings below are to reduce costs during testing and are not
appropriate
# for production use. For more information, see:
# https://cloud.google.com/appengine/
当我运行本地主机时,我有一个运行良好的SmtpClient。但是,在google云服务器上,它返回:
System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond