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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:07:05+00:00 2026-05-10T15:07:05+00:00

I am writing a web application that requires user interaction via email. I’m curious

  • 0

I am writing a web application that requires user interaction via email. I’m curious if there is a best practice or recommended source for learning about processing email. I am writing my application in Python, but I’m not sure what mail server to use or how to format the message or subject line to account for automated processing. I’m also looking for guidance on processing bouncebacks.

  • 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. 2026-05-10T15:07:06+00:00Added an answer on May 10, 2026 at 3:07 pm

    There are some pretty serious concerns here for how to send email automatically, and here are a few:

    Use an email library. Python includes one called ’email’. This is your friend, it will stop you from doing anything tragically wrong. Read an example from the Python Manual.

    Some points that will stop you from getting blocked by spam filters:

    Always send from a valid email address. You must be able to send email to this address and have it received (it can go into /dev/null after it’s received, but it must be possible to /deliver/ there). This will stop spam filters that do Sender Address Verification from blocking your mail.

    The email address you send from on the server.sendmail(fromaddr, [toaddr]) line will be where bounces go. The From: line in the email is a totally different address, and that’s where mail will go when the user hits ‘Reply:’. Use this to your advantage, bounces can go to one place, while reply goes to another.

    Send email to a local mail server, I recommend postfix. This local server will receive your mail and be responsible for sending it to your upstream server. Once it has been delivered to the local server, treat it as ‘sent’ from a programmatic point of view.

    If you have a site that is on a static ip in a datacenter of good reputation, don’t be afraid to simply relay the mail directly to the internet. If you’re in a datacenter full of script kiddies and spammers, you will need to relay this mail via a public MTA of good reputation, hopefully you will be able to work this out without a hassle.

    Don’t send an email in only HTML. Always send it in Plain and HTML, or just Plain. Be nice, I use a text only email client, and you don’t want to annoy me.

    Verify that you’re not running SPF on your email domain, or get it configured to allow your server to send the mail. Do this by doing a TXT lookup on your domain.

    $ dig google.com txt ...snip... ;; ANSWER SECTION: google.com.     300 IN  TXT 'v=spf1 include:_netblocks.google.com ~all' 

    As you can see from that result, there’s an SPF record there. If you don’t have SPF, there won’t be a TXT record. Read more about SPF on wikipedia.

    Hope that helps.

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

Sidebar

Ask A Question

Stats

  • Questions 239k
  • Answers 239k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Yes. It's legal to construct and destroy a const heap… May 13, 2026 at 6:57 am
  • Editorial Team
    Editorial Team added an answer I would rephrase the search for the first wanted number… May 13, 2026 at 6:57 am
  • Editorial Team
    Editorial Team added an answer You need to set the e modifier to have the… May 13, 2026 at 6:57 am

Related Questions

I am writing a web application that requires user interaction via email. I'm curious
I am not sure how to phrase a good question, so I will just
I have an application that is using Windows Authentication and a SqlRoleProvider for user
A Note I have a very good understanding of sessions and the theory of
I am writing a web application that requires friendly urls, but I'm not sure

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.