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

  • SEARCH
  • Home
  • 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 7850759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:57:49+00:00 2026-06-02T18:57:49+00:00

EDIT: In case you want to test i have deployed the code to this

  • 0

EDIT: In case you want to test i have deployed the code to this github repo

The basic feature i want to implement is sending mails from a form. Almost what anyother Contact Us form on your website does. The demo url is takemailer.appspot.com

The form as can be seen in url, sends a post request to the server.
The views where i handle the request is as follows:

def post_data(request):   
    logging.info(request.POST)
    frm_name = request.POST['name']    frm_mail = request.POST['email']
    frm = frm_name + " <" + frm_mail + ">"
    frm = '"%s"' % frm #above two lines # done to produce a format like "Name <name@mail.com>"
    sub = request.POST['subject']
    cmnt = request.POST['comment']
    extra = str(frm + sub +  cmnt)  
    logging.info(frm)
    a = mail.send_mail(sender=frm,
              to="Albert Johnson <du***@gmail.com>",
              subject=sub,
              body=cmnt) 
    logging.info(a)
    return http.HttpResponse("1")

The above version of the code does not work and raises

<class 'django.core.exceptions.ImproperlyConfigured'>: You haven't set the DATABASE_ENGINE setting yet.

Stacktrace attached at bottom.

However if i modify the views function to hardcode a from email as shown below it works seamlessly:

def post_data(request):   
        logging.info(request.POST)
        sub = request.POST['subject']
        cmnt = request.POST['comment']
        a = mail.send_mail(sender="Albert Johnson <du***@gmail.com>",
                  to="Albert Johnson <du***@gmail.com>",
                  subject=sub,
                  body=cmnt) 
        logging.info(a)
        return http.HttpResponse("1")

Any idea of why the above is working and the one above this is not working, and raising such an error?

Stacktrace:

Traceback (most recent call last):
  File "/base/data/home/apps/s~takemailer/1.357442066172211834/django_bootstrap.py", line 65, in <module>
    main()
  File "/base/data/home/apps/s~takemailer/1.357442066172211834/django_bootstrap.py", line 62, in main
    util.run_wsgi_app(application)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py", line 98, in run_wsgi_app
    run_bare_wsgi_app(add_wsgi_middleware(application))
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py", line 116, in run_bare_wsgi_app
    result = application(env, _start_response)
  File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/handlers/wsgi.py", line 189, in __call__
    response = self.get_response(request)
  File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/core/handlers/base.py", line 115, in get_response
    receivers = dispatcher.send(signal=signals.got_request_exception)
  File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/dispatch/dispatcher.py", line 360, in send
    **named
  File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/dispatch/robustapply.py", line 47, in robustApply
    return receiver(*arguments, **named)
  File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/db/__init__.py", line 47, in _rollback_on_exception
    transaction.rollback_unless_managed()
  File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/db/transaction.py", line 145, in rollback_unless_managed
    connection._rollback()
  File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/db/backends/dummy/base.py", line 13, in complain
    raise ImproperlyConfigured, "You haven't set the DATABASE_ENGINE setting yet."

this question is a follow up question from here since that question did not get any answer, i kept trying further, the problem has boiled down to this small measure:

  • 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-02T18:57:50+00:00Added an answer on June 2, 2026 at 6:57 pm

    Well the error does not lie in code, it lies i google’s policy 🙂
    When you read through it, through your app the one who can send email should have either:

    1. an email with same domain name.
    2. The admin of the app.

    Hope you get your answer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT: This code now works correctly, I only left it in case someone finds
Use case is this: I want to unit test (in browser, QUnit or something
EDIT: I missed a crucial point: .NET 2.0 Consider the case where I have
This is clearly not the case though. My JS : $(.job_charge.item-block).live({ mouseenter: function(){ $(this).find('.edit-and-delete').stop(true,true).fadeIn();
Edit: Translated I have a RSS-feed that i want to parse. It's a podcast
I have code like: document.onmousedown = function(){ alert('test'); } Now, except the element with
I have problems adding panorama items through code. Here is test xaml that works.
I have a search form that looks like this: The code behind the form
I have the following input <row test=1 /> and want to generate the following
How to get function's name from function's pointer in C? Edit: The real case

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.