I obtain this error when try to send a email with sendmail. The connectivity to letter server is fine, also I deserve to telnet come the mail server.




You are watching: 530 5.7 1 client was not authenticated

*

*

*

I think you have actually to collection UseDefaultCredentials to true: view sample powershell code

#SMTP server name$smtpServer = "abcd.com.au"$OFS = "`r`n`r`n"#Creating a mail object$msg = new-object Net.Mail.MailMessage#Creating SMTP server object$smtp = new-object Net.Mail.SmtpClient($smtpServer)$smtp.UseDefaultCredentials = $true#Creating SMTP server object$smtp = new-object Net.Mail.SmtpClient($smtpServer)$smtp.UseDefaultCredentials = $true#Email framework $msg.From = "abcd
axyz.com.au")$msg.subject = "Sample below (" + $a + " )"$msg.body = "This is sample mail" + $OFS# connect a paper $file = "C:sample.txt"$attachment = new-object System.Net.Mail.Attachment $file$msg.Attachments.Add($file)#Sending email $smtp.Send($msg)

*

many thanks for contributing solution to ridge Overflow!

Please be certain to answer the question. Administer details and share her research!

But avoid

Asking because that help, clarification, or responding to other answers.Making statements based on opinion; earlier them up with referrals or personal experience.

To find out more, watch our advice on writing good answers.


short article Your answer Discard

By click “Post her Answer”, girlfriend agree to our regards to service, privacy policy and cookie policy


Not the price you're spring for? Browse various other questions tagged covering email authentication customer sendmail or asking your own question.


*



See more: Complete Dental Care New Bern Nc Dentists, Complete Dental Care In New Bern, North Carolina

site architecture / logo © 2021 stack Exchange Inc; user contributions license is granted under cc by-sa. Rev2021.11.1.40614


your privacy

By click “Accept every cookies”, you agree ridge Exchange can store cookies on your maker and disclose details in accordance with our Cookie Policy.