title: SMTP Client shows error "Requested action not taken" in C# app
body: <p>I am trying to setup an email sending application, using a hotmail account.</p>
  <p>The code looks like this:</p>
  <pre><code>MailMessage mail = new MailMessage(from, to);
          mail.Subject = &quot;Proba email&quot;;
          mail.Attachments.Add(new Attachment(&quot;C:\\Documents and Settings\\Proba.txt&quot;));
          SmtpClient client = new SmtpClient();
          client.UseDefaultCredentials = false;
          client.Port = 587; // 465 568
          client.Host = &quot;smtp.live.com&quot;;
          client.EnableSsl = true;
          client.Credentials = new System.Net.NetworkCredential(&quot;smg@hotmail.com&quot;, &quot;password&quot;);
          client.SendCompleted += new SendCompletedEventHandler(client_SendCompleted);
          client.SendAsync(mail, &quot;token&quot;);
  </code></pre>
  <p>Using, Async I actually get no errors, I even get the feedback saying message sent (Event triggers) but the message never arrives. If I use the simple client.Send void, I get the following error:</p>
  <blockquote>
  <p>5.3.4 Requested action not taken; To continue sending messages, please sign in to your account.</p>
  </blockquote>
  <p>So any ideas on what the problem can be? As I was trying to hand down the SMTP settings of hotmail I got various setups saying port 25, then 587 so maybe it's something there. Any help would be greatly appreciated thanks!</p>
  <ul>
  <li>Okay so it's definitely working now, I would just like to ask if I will have to do regular &quot;I'm not a robot checks&quot; or was that a one-time thing?</li>
  </ul>