title: SMTP auth() command not supported on smtp.office365.com
body: <pre><code>use warnings;
  use MIME::Lite;
  use Net::SMTP;
  
  ### Adjust sender, recipient and your SMTP mailhost
  my $from_address = 'doni@home.com';
  my $to_address = 'doni@home.com';
  my $mail_host = 'smtp.office365.com';
  
  ### Adjust subject and body message
  my $subject = 'A message with 2 parts ...';
  my $message_body = "Here's the attachment file(s) you wanted";
  
  ### Adjust the filenames
  my $my_file_txt = 'C:\Users\Doni\Documents';
  my $your_file_txt = 'test1.txt';
  
  ### Create the multipart container
  $msg = MIME::Lite-&gt;new (
      From =&gt; $from_address,
      To =&gt; $to_address,
      Subject =&gt; $subject,
      Type =&gt;'multipart/mixed'
  ) or die "Error creating multipart container: $!\n";
  
  ### Add the text message part
  $msg-&gt;attach (
      Type =&gt; 'TEXT',
      Data =&gt; $message_body
  ) or die "Error adding the text message part: $!\n";
  
  ### Add the TEXT file
  $msg-&gt;attach (
      Type =&gt; 'text',
      Encoding =&gt; 'base64',
      Path =&gt; $my_file_txt,
      Filename =&gt; $your_file_txt,
      Disposition =&gt; 'attachment'
  ) or die "Error adding file_text: $!\n";
  
  ##Send 
  MIME::Lite-&gt;send('smtp',$mail_host,SSL=&gt;0,AuthUser=&gt;'doni@home.com',AuthPass=&gt;'******',Debug=&gt;1,Port=&gt;587,Timeout=&gt;60);
  $msg-&gt;send;
  </code></pre>
  
  <p>the output of the command is:</p>
  
  <pre><code>##Here's the output
  
  SMTP auth() command not supported on smtp.office365.com 
  </code></pre>
  
  <p>How to resolve that issue? I'm stuck with that.</p>