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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:21:40+00:00 2026-06-04T12:21:40+00:00

When an email is received that generates an error what is the best way

  • 0

When an email is received that generates an error what is the best way to bounce the message? For example you store a file in a db.BlobProperty but an email comes in that exceeds the 1m limit. There needs to be a bounce error to the request somehow so the email doesn’t keep hitting the server and increasing the billing every 15 minutes. (Don’t ask me how I know 😛 … not really it is a separate but related issue I posted in another question. here )

But that other error made it clear I need to deal with this before I get that email with multiple attachments that nails me for 1gb of data.

Normally the mail server handles the bounce, like when you send to a bad address and returns an error to the client/server. I have searched and didn’t find anything helpful on this. YMMV

Is there an undocumented function? What is the proper response to return so that the originating server stops sending?

  • 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-04T12:21:41+00:00Added an answer on June 4, 2026 at 12:21 pm

    There’s no way to bounce a message once it arrives at your App Engine app. You have two options:

    1. Send the user a ‘bounce message’ yourself using the outgoing email API
    2. Silently discard the message

    In either case, you should install a top-level exception handler (frameworks like webapp and webapp2 have support for this) that logs the exception, performs the appropriate action, and then returns status code 200 instead of 500, so the message won’t be redelivered repeatedly.

    In your specific case, too, I’d start storing the attachments in the blobstore instead of a blob property, to avoid the 1MB limit.

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

Sidebar

Related Questions

I want to plot email from and to in world. For example, I received
My application receives email from users. A response from gmail, for example, comes in
I am building an iPhone application that generates an email with an attachment. The
I have an asp.net 4.0 web site that generates email alerts based on several
I have a method that generates a PDF file using Reportlab library: def obtenerPDFNuevoPedido(self,
I have a table of emails. And i need that Each user received email.
I'm writing a j2ee application, that generates an html and sends it as email.
I have a php pipe script that receives an email, takes an attached *.csv
I would like to display all the subjects of email received on a website.
I received an email from Facebook saying offline access will no longer be available

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.