title: Django, environment variables. Error: SMTPRecipientsRefused at /password_reset/
body: <p>it's my first post here.</p>
  
  <p>I'm learning Django, and i'm trying to send an email to reset my password. There is one problem..</p>
  
  <p>When I send an email with my username and password assigned to these constants, everything works well:</p>
  
  <pre><code>EMAIL_HOST_USER = 'abc.def@gmail.com'
  EMAIL_HOST_PASSWORD = 'Abc123'
  </code></pre>
  
  <p>But when i try to use environment variables instead:</p>
  
  <pre><code>EMAIL_HOST_USER = os.environ.get('EMAIL_USER')
  EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_PASS')
  </code></pre>
  
  <p>i got an error</p>
  
  <p><strong>SMTPRecipientsRefused at /password_reset/</strong></p>
  
  <p><strong>{'abc.def@gmail.com': (501, b': sender address must contain a domain')}</strong></p>
  
  <p>Am I doing something wrong?
  Maybe I should use environment variables in different ways?</p>
  
  <p>In advance, thanks for your help, guys!</p>