Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My script is about sending notfication email, and it was running well on my local machine, but when I removed it to an server 2k3, the email cannot be sent out with below error log:

Exception calling "Send" with "1" argument(s): "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Client was
 not authenticated"
At line:1 char:19
+ $smtp_buglist.Send <<<< ($mail_buglist)
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException

Please help me out of this, I am confused.

share|improve this question
up vote 2 down vote accepted

I worked this out, the thing I need to do is to mark $send.UseDefaultCredentials as "True"

share|improve this answer
Glad you resolved this issue. Please be sure to mark your answer as "accepted" when you are able. – jscott Jul 30 '12 at 23:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.