title: SMTP AUTH extension not supported by server in python 2.4
body: <p>This is my normal code in my VPS hosting which provide python 2.4 </p>
  
  <pre><code>def mail(receiver,Message):
      import smtplib
      try:
          s=smtplib.SMTP()
          s.connect("smtp.gmail.com",465)
          s.login("email@gmail.com", "password")
          s.sendmail("email@gmail.com", receiver, Message)
      except Exception,R:
              return R
  </code></pre>
  
  <p>but unfortunately return this message! :
  <code>SMTP AUTH extension not supported by server.</code></p>
  
  <p>in my computer which i've install python 2.7 i found the solution and it's work very good  here is this code  :</p>
  
  <pre><code>def mail(T,M):
      import smtplib
      try:
          s=smtplib.SMTP_SSL()
          s.connect("smtp.gmail.com",465)
          s.login("xxxxx@gmail.com","your_password")
          s.sendmail("xxxxx@gmail.com", T, M)
      except Exception,R:
              print R
  </code></pre>
  
  <p>But in the VPS which installed python 2.4 doesn't have SMTP_SSL() and return this message <code>'module' object has no attribute 'SMTP_SSL'</code></p>
  
  <p>Also i've tried to upgrade my python in VPS but what happened is Damage the whole python that mean python not work at all.</p>