title: 'utf-8' codec can't decode byte 0xe9 in position 4: unexpected end of data
body: <p>Im very new to this language and encountered some trouble to send emails through python, my code looks like this:</p>
  
  <pre><code>import smtplib
  server=smtplib.SMTP("smtp.gmail.com",587)
  server.starttls()
  server.login('username','password')
  
  message = "hi there"
  server.sendmail('username', 'username', message)
  
  server.quit()
  </code></pre>
  
  <p>my system is:
  Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32</p>
  
  <p>and the output I get is:</p>
  
  <pre><code>Traceback (most recent call last):
  File "C:\pythonfiles\testmail - kopia.py", line 6, in &lt;module&gt;
    server=smtplib.SMTP("smtp.gmail.com",587)
  File "C:\python\lib\smtplib.py", line 261, in __init__
    fqdn = socket.getfqdn()
  File "C:\python\lib\socket.py", line 676, in getfqdn
    hostname, aliases, ipaddrs = gethostbyaddr(name)
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in 
  position 4: unexpected end of data
  </code></pre>
  
  <p>My computername consists of the letter é can i have to do something with that? Ive saved the file through notepad to UTF-8. </p>
  
  <p>Any ideas?</p>
  
  <p>Cheers André</p>