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 8648011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:12:51+00:00 2026-06-12T13:12:51+00:00

I am currently trying to integrate mandrill into this Django-based website for emails. Djrill

  • 0

I am currently trying to integrate mandrill into this Django-based website for emails. Djrill is the recommended package for Django and sits in place of the default SMTP/email backend, passing emails through to a Mandrill account.

When I try to test that this new backend is working by running this command:

send_mail('Test email', body, 'noreply@*********.com', [user.email], fail_silently=False)

It throws the following error: http://pastebin.ca/2239978

Can anybody point me to my mistake?

  • 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-12T13:12:52+00:00Added an answer on June 12, 2026 at 1:12 pm

    Update:

    As @DavidRobinson mentions in a comment, you are not getting a successful response from the mandrill API authentication call. You should double check your API key.

    If that is correct, try using curl to post {"key": <your api key>, "email": <your from email>} to MANDRILL_API_URL + "/users/verify-sender.json" and see if you get a 200.

    Something like this:

    curl -d key=1234567890 -d email=noreply@mydomain.com http://mandrill.whatever.com/user/verify-sender.json
    

    Original answer:

    There is also an issue in Djrill that prevents a useful error message from propagating up. That last line of the stack trace is the problem.

    This is the entire open method taken from the source:

    def open(self, sender):
        """
        """
        self.connection = None
    
        valid_sender = requests.post(
            self.api_verify, data={"key": self.api_key, "email": sender})
    
        if valid_sender.status_code == 200:
            data = json.loads(valid_sender.content)
            if data["is_enabled"]:
                self.connection = True
                return True
        else:
            if not self.fail_silently:
                raise
    

    See how it just says raise without an exception argument? That syntax is only allowed inside an except block, and raises the exception currently being handled. It doesn’t work outside an except block.

    An open issue in Djrill mentions a send failure and links a fork that supposedly fixes it. I suspect Djrill isn’t well supported and you might try that fork or another solution entirely.

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

Sidebar

Related Questions

We're currently trying to integrate existing classic ASP pages into our new method of
I am trying to Integrate an SMS service into my website. I need to
I am trying to integrate some OpenCV functionality into my application. Currently I have
I have a classifieds website which I am now trying to integrate SOLR into,
Currently I am trying to integrate db4o into my App. I have a Model
I'm trying to integrate a google visualisation chart into my backbone.js app. Currently I
I'm currently trying to integrate some animation drawing code of mine into a third
I am currently trying to integrate Paypal's MECL in an already existing IOS project
I'm currently trying this: using DocumentFormat.OpenXml.Packaging; using (WordprocessingDocument wordDoc = WordprocessingDocument.Open(fileNameDocx as string, true))
I'm trying to integrate a script file hosted by a third party into a

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.