Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7866681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:28:28+00:00 2026-06-03T00:28:28+00:00

When the view that sends the email is used nothing happens, i then entered

  • 0

When the view that sends the email is used nothing happens, i then entered send_mail(…) into the python shell and it returned 1 but i didn’t receive any emails.

This is my settings.py

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'senderaddress@gmail.com'
EMAIL_HOST_PASSWORD = 'Password1234!'
EMAIL_USE_TLS = True

This is the view:

def send_email(request):
    send_mail('Request Callback', 'Here is the message.', 'senderaddress@gmail.com',
        ['recipientaddress@gmail.com'], fail_silently=False)
    return HttpResponseRedirect('/')
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:28:30+00:00Added an answer on June 3, 2026 at 12:28 am

    Adjust your settings thus:

    DEFAULT_FROM_EMAIL = 'workorbit@gmail.com'
    SERVER_EMAIL = 'workorbit@gmail.com'
    EMAIL_USE_TLS = True
    EMAIL_HOST = 'smtp.gmail.com'
    EMAIL_PORT = 587
    EMAIL_HOST_USER = 'workorbit@gmail.com'
    EMAIL_HOST_PASSWORD = 'P@ssw0rd5'
    

    Adjust your code:

    from django.core.mail import EmailMessage
    
    def send_email(request):
        msg = EmailMessage('Request Callback',
                           'Here is the message.', to=['charl@byteorbit.com'])
        msg.send()
        return HttpResponseRedirect('/')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a view that is used in a UINavigationController and and is automatically
I have a Action that sends a simple email: [HttpPost, ActionName(Index)] public ActionResult IndexPost(ContactForm
I have an activity with a button that sends a pre-defined email. The button
Here's my send email function that sends the email however i have two different
I have an app that sends files with custom file extensions via email that
I have a basic PHP form here that sends an email when submitted: <div
When I'm developing something that sends email, I sometimes don't want to actually send
I have an asynchronous job that sends an email to the user when it
I am trying to let a user submit a form that sends an email
I created an indexed view that joined a number of tables to get better

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.