Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

用阿里邮箱发送失败 #43

Open
bbhxwl opened this issue Nov 10, 2021 · 1 comment
Open

用阿里邮箱发送失败 #43

bbhxwl opened this issue Nov 10, 2021 · 1 comment

Comments

@bbhxwl
Copy link

bbhxwl commented Nov 10, 2021

Run SendEmail -t *** -s "SendFile" -b "File" --Files file.zip --SmtpServer smtp.aliyun.com --SmtpServerPort 465 --UserName *** -***
通过 smtp.aliyun.com:465 发送 SendFile 到 ***
Unhandled exception. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Net.Mail.SmtpException: Failure sending mail.
---> System.IO.IOException: Unable to read data from the transport connection: The connection was closed.
at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)
at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)
at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)
at System.Net.Mail.SmtpClient.GetConnection()
at System.Net.Mail.SmtpClient.Send(MailMessage message)
--- End of inner exception stack trace ---
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at dotnetCampus.SendEmailTask.Program.Main(String[] args) in D:\a\dotnetcampus.DotNETBuildSDK\dotnetcampus.DotNETBuildSDK\SendEmailTask\Program.cs:line 86
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at dotnetCampus.DotNETBuild.CommandLineDragonFruit.CommandLine.ExecuteAssemblyAsync(Assembly entryAssembly, String[] args, String entryPointFullTypeName, String xmlDocsFilePath)
at AutoGeneratedProgram.Main(String[] args) in D:\a\dotnetcampus.DotNETBuildSDK\dotnetcampus.DotNETBuildSDK\SendEmailTask\obj\Release\netcoreapp3.1\SendEmailTask.Program.g.cs:line 9
at AutoGeneratedProgram.

(String[] args)
/home/runner/work/_temp/2fc6e7cf-ca7c-49e4-a05c-d0895ba9e2e5.sh: line 1: 2825 Aborted (core dumped) SendEmail -t *** -s "SendFile" -b "File" --Files file.zip --SmtpServer smtp.aliyun.com --SmtpServerPort 465 --UserName *** -***
Error: Process completed with exit code 134.

@lindexi
Copy link
Member

lindexi commented Mar 7, 2022

你是不是发错仓库了?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants