luo jianping 2 Posted January 4, 2022 Share Posted January 4, 2022 I'm trying to run the auto-send mail feature locally, but following the prompts to enter the mailbox sending server and sender is experiencing the following error"Error:needEHLOandAUTHfirst". At the same time, I was wondering why I wasn't prompted for information like port and username and password..... Many Thanks Failed to send email using SMTP server 'smtp.exmail.qq.com' from 'luojianping@szhk.com.cn' to 'luojianping@szhk.com.cn'. Reason: System.Net.Mail.SmtpException: Error: need EHLO and AUTH first ! System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode) System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception) System.Net.Mail.SmtpClient.Send(MailMessage message) Spotfire.Dxp.Automation.Tasks.Tasks.SendEmail.SendTheMail(TaskExecutionContext context, String smtpHost, String fromAddress, String messageBody, AttachmentsInfo attachmentsInfo) Link to comment Share on other sites More sharing options...
Sanket Rajeev Naik Posted May 19, 2022 Share Posted May 19, 2022 Hi, The error "Error:needEHLOandAUTHfirst" is mostly seen if you are not authorized to relay through that SMTP server. Please Contact and check with your SMTP server admin for additional details. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now