添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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 I use mailkit to send aws ses
csharp code:

            using (var client = new MailKit.Net.Smtp.SmtpClient(new ProtocolLogger(Program.CreateMailLog())))
                //25 587
                // String HOST = "email-smtp.us-west-2.amazonaws.com";
                // int PORT = 587;
                client.Connect(HOST, PORT, SecureSocketOptions.StartTlsWhenAvailable);
                //SMTP_USERNAME: Replace smtp_username with your Amazon SES SMTP user name.
                // SMTP_PASSWORD: Replace smtp_password with your Amazon SES SMTP user name.
                client.Authenticate(SMTP_USERNAME, SMTP_PASSWORD);
                // client.Authenticate(oauth);
                client.Send(message);
                client.Disconnect(true);

but is error.
logs:

Connected to smtp://email-smtp.us-west-2.amazonaws.com:587/?starttls=when-available
S: 220 email-smtp.amazonaws.com ESMTP SimpleEmailService-d-B1D75AM90 83qp4IzaerfvF0CNuJJJ
C: EHLO [192.168.1.110]
S: 250-email-smtp.amazonaws.com
S: 250-8BITMIME
S: 250-SIZE 10485760
S: 250-STARTTLS
S: 250-AUTH PLAIN LOGIN
S: 250 Ok
C: STARTTLS
S: 220 Ready to start TLS
C: EHLO [192.168.1.110]
S: 250-email-smtp.amazonaws.com
S: 250-8BITMIME
S: 250-SIZE 10485760
S: 250-STARTTLS
S: 250-AUTH PLAIN LOGIN
S: 250 Ok
C: AUTH PLAIN XXX
S: 235 Authentication successful.
C: MAIL FROM:<myemailname> SIZE=606
S: 501 Invalid MAIL FROM address provided
C: RSET
S: 250 Ok

logs say my error is 501 Invalid MAIL FROM address provided
but i don't know what can i do
someone has idea of it
Best wish