title: How to send email with secureserver.net?
body: <p>I have a requirement to send an email,I have successfully sent email with below code to send email with gmail  <code>smtp.gmail.com:587</code> as smtp server.But i am getting error with <code>smtpout.asia.secureserver.net</code> my following code </p>
  
  <pre><code>import smtplib
  
  def sendemail(to_addr_list='abcd.123@xxxxx.com', cc_addr_list='abcd.3214@xxxxxx.com',
            subject='Test mail', message='this is a test mail', from_addr='TestAddress',
            login='user123@xxxx.co', password='xxxxxxxx',
            smtpserver='smtpout.asia.secureserver.net:25'):
      header  = 'From: %s\n' % from_addr
      header += 'To: %s\n' % ','.join(to_addr_list)
      header += 'Cc: %s\n' % ','.join(cc_addr_list)
      header += 'Subject: %s\n\n' % subject
      message = header + message
  
      server = smtplib.SMTP(smtpserver)
      server.starttls()
      server.login(login,password)
      problems = server.sendmail(from_addr, to_addr_list, message)
      server.quit()
      return problems
  
  sendemail()
  </code></pre>
  
  <p>I am getting the following error</p>
  
  <p><code>raise SMTPException("STARTTLS extension not supported by server.")
  smtplib.SMTPException: STARTTLS extension not supported by server.</code></p>
  
  <p>How to solve this.?Thanks in advance!</p>