Jump to content

How to set the server address in automatic mail sending

luo jianping 2

Recommended Posts

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

  • 4 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...