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
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: MissingStartTls
#10
Comments
I am also having issues with the new version and I am trying to connect to AWS SES on port 587. |
@awol2005ex This error is because the server does not seem to support the STARTTLS command and you are using the TLS client builder. If you connect manually using telnet and write EHLO mydomain.org do you see STARTTLS listed as a capability? If you don't then you need to use the plain text client builder. |
Are you setting implicit tls to false? |
I change the code to But error : The stmp server connect return code is 220 not 200 so go to Err . but 220 is corrent code |
There was a bug in the plain text connect which has now been fixed on version 0.3.1. |
It's OK after upgrade to version 0.3.1 |
It's OK after upgrade to version 0.3.1 |
version: mail-send = "0.3.0"
when not connect to stmp with tls:
match SmtpClientBuilder::new(email_host,25) .implicit_tls(false) .credentials((email_username, email_password)) .timeout(Duration::from_secs(3)) .connect() .await .unwrap() .send(message) .await { Ok(_) => println!("Email sent successfully!"), Err(e) => panic!("Could not send email: {:?}", e), }
thread 'main' panicked at 'called
Result::unwrap()
on anErr
value: MissingStartTls',The text was updated successfully, but these errors were encountered: