Error 500 – Must isse a STARTTLS command first in asp.net web config

I have an error related to smtp parameters delcared in my asp.net smtp code which worked using mailgun smtp parameters but not-working using aws-ses credentials, it seemed difficult.

The error returned says:

Email not sent. The SMTP server require a secure connection or the client was not authenticated. The server respinse was: Authentication required.

when I tested the parameters on a windows smtp test tool diag, the error returned says:

500 – must issue a STARTTLS command first.

I reached out to AWS and they clarified that the issue has nothing to do with the credentials, else, the error would be different.

AWS Recommended this:
I would request you to please check on client configuration why client is not making the connection over SSL with STARTTLS even though you configured enableSsl=”true” on asp.net end.

<system.net>
 <mailSettings>
  <smtp deliveryMethod="Network" from="admin@******es.com">
   <network host="email-smtp.eu-west-1.amazonaws.com" port="587" userName="AK*******" password="eereree&&&&^^^e" enableSsl="true"/>
  </smtp>
 </mailSettings>
</system.net>

Is there anyway to delcare STARTTLS or TLS in the mailSettings paramter, we have verified already that the server 2008 we ‘re using support tls1.2

Any help will be appreciated.?

Sam

When I contacted aws suppor team, here is there response below:

AWS Support Team’s Response
Thank you for contacting AWS Premium Support. My name is Rishu, I will be assisting you with your case.

From case notes, I understand that you are getting errors while testing SES credentials using Windows SMTP test tool. You want to know the issue for it and way to overcome it. Please correct me if I am wrong.

I would like to inform you that I checked the SMTP conversation logs provided by you. In the logs, I can see error message as ‘530 Must issue a STARTTLS command first’. This error is usually thrown by the client when the TLS/SSL communication is not happening between the client and SES. This isn’t due to the credentials. If credentials were issues, you would’ve received error something like ‘Incorrect credentials’. In order to overcome this issue, I would request you to please check on client configuration why client is not making the connection over SSL with STARTTLS even though you configured enableSsl=”true” on asp.net end. We AWS Support engineers we do not have the expertise in coding and debugging activities [1], so we cannot comment why asp.net is not making the connection over SSL with SES. However while checking the issue, I found out some third party documents which might help you in overcoming the issue and creating a SSL connection between client and SES over STARTTLS. Please refer to the following document for more information on the same:

https://afterlogic.com/mailbee-net/docs/MailBee.SmtpMail.Smtp.StartTls.html
https://www.codeproject.com/Questions/5317024/How-to-resolve-exception-error-in-processing-The-s
https://learn.microsoft.com/en-us/dotnet/api/system.net.mail.smtpclient.enablessl?view=net-8.0

I hope the above information is helpful to you. If you have any queries or doubts regarding any of the above information, please let me know. I will be more than happy to assist you again. Have a great day ahead!

— end of aws support message —–

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật