title: How to set host address in python smtplib module?
body: <p>In linux environment, I want to connect to our company's mail server and send anonymous emails, it's host address in 10.18.93.128, and port is 25.</p>
  
  <p>I don't know where to insert those information in code below, here gmail's server is used, but I want to use our mail server:</p>
  
  <pre><code>import smtplib  
  fromaddr = 'anyemail@anyaddressx.com'  
  toaddrs  = 'recipient_email@mycompany.com'  
  msg = 'Hello'  
  
  
  # Credentials (if needed)  
  username = 'yyyyy'  
  password = 'xxxxx'  
  
  # The actual mail send  
  server = smtplib.SMTP('smtp.gmail.com:587')  
  server.starttls()  
  server.login(username,password)  
  server.sendmail(fromaddr, toaddrs, msg)  
  server.quit()  
  </code></pre>
  
  <p>My questions:</p>
  
  <ol>
  <li>Where do I enter our mail server's host adress 10.18.93.128 and port
  above?</li>
  <li>Is it possible to send email using a non-existing email account? It
  means I will not log in to an account, just send anonymous emails.</li>
  </ol>
  
  <p>Thanks
  Best Regards</p>