title: Remove extra headers from email
body: <p>I'm trying to create a good email bulk sender. I've written this function:</p>
  
  <pre><code>def send(server_ip,username,password,recipient,count):
      sender = 'prova &lt;' + username +'&gt;'
      body = ''.join(tempMail)
      body = body.replace('#email#', recipient)
      body = body.replace('#random#', rand_string())
      subject = "Test smpt sender"
      headers = ["From: " + sender, "Subject: " + subject, "To: " + recipient, "MIME-Version: 1.0", "Content-Type: text/html"]
      headers = "\r\n".join(headers)
      try:
          server = smtplib.SMTP(server_ip)  
          server.login(username,password)
          server.sendmail(sender, recipient, headers + "\n\n" + body)
          code = server.ehlo()[0]
          server.quit()
          print "[+] Send to",recipient + " smpt :",server_ip
      except:
          listSMPT.pop(count)
          print "[-] Error send to " + recipient + '\t' + server_ip
  </code></pre>
  
  <p>But I have one problem: All emails I send have my IP address in email headers.
  I need a solution without use of sockets or proxy!
  Is it possible to send emails without this data in email headers?
  If I have IP of SMTP in headers, it's not problem, I need to remove only IP to PC where python is working.</p>