title: Django- Try sending email in python shell using send_mail(), but cannot work
body: <p>I am trying to send account activation link in my Django project, but it cannot work. So I try the very basic send_mail() function in shell and see if it is sending.</p>
  
  <p>in the settin.py </p>
  
  <pre><code>    AUTHENTICATION_BACKENDS = (
      'django.contrib.auth.backends.ModelBackend', # necessary for django.auth
      'survey.modelbackend.EmailBackend' # custom backend to authenticate using the email field
  )
  
      #settings for the email 
      EMAIL_HOST = 'localhost'
      EMAIL_PORT = 25
      DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  </code></pre>
  
  <p>(I am using all the default values in the settings for email)</p>
  
  <p>in the shell I typed</p>
  
  <pre><code>&gt;&gt;&gt; from django.core.mail import send_mail
  &gt;&gt;&gt; send_mail('Subject here', 'Here is the message.', 'from@example.com',
      ...     ['myemailaddress@gmail.com'], fail_silently=False)
  </code></pre>
  
  <p>and it return 1 after the above line, but I cannot get the email in my own email </p>
  
  <p>Can anyone help with this problem and explain why the email is not sent to my email? </p>
  
  <p>Thank you very much.</p>