title: Email module in python 3
body: <p>So I'm following a tutorial to send email in python, the problem is that it was written for python 2 not python 3(which is what I have). So here's what I'm trying to get an answer what is the module for email in python 3? the specific module I'm trying to get is is:</p>
  
  <pre><code>from email.MIMEMultipart import MIMEMultipart
  from email.MIMEText import MIMETex
  </code></pre>
  
  <p>I also have a feelling that when I get down to this module there will be an error (haven't got there yet because of
  the module above giving error </p>
  
  <pre><code>import smtp
  </code></pre>
  
  <p>Here is the script:</p>
  
  <pre><code>from email.MIMEMultipart import MIMEMultipart
  from email.MIMEText import MIMETex
  
  fromaddr = ("XXXXX@mchsi.com")
  toaddr = ("XXXX@mchsi.com")
  msg = MIMEMultipart
  msg['From'] = fromaddr
  msg['To'] =  toaddr
  msg['Subject'] = ("test")
  
  body = ("This is a test sending email through python")
  msg.attach(MIMEText(body, ('plain')))
  
  import smptlib
  server = smptlib.SMPT('mail.mchsi.com, 456')
  server.login("XXXXX@mchsi.com", "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
  text = msg.as_string()
  sender.sendmail(fromaddr, toaddr, text)
  </code></pre>