Implement Notifications

My client wants to send emails and reports to clients. Now. The code on the python side doesn't seem too complicated, but the rest of the story.

What do I need to send emails that will not be blocked by email servers and clients?

+4
source share
2 answers

Your program makes an SMTP connection to the sendmail server. If you own this server, you control its configuration. Nothing will be blocked.

Spam, however, is spam. Your customer might think their email is gold, but their customers might think it is spam. Oh good.

First, you need to make your email campaign "enter." If customers want to receive email notifications, they request. If they do not request, they do not receive email.

Secondly, you need to record the bounce you receive from the provided email address. Hard bounces come back with answers like "no such address" in various forms. Soft bounces - "we're still trying or mailbox." You must judge what to do with the bounces.

What about the best you can do. You cannot make people admit that your customer email is really important, but the other spam is just spam.

+4
source

There is no right way to fire, as email filters can do as they see fit, but a few recommendations:

  • Use a real SMTP server, usually your client (if authentication is required). Essentially, I mean one that in real use is not special to send only your emails.
  • Sending with a real account that can receive responses.
  • Avoid HTML, if possible, if this is not possible, send a multipart message .
  • Send all required headers plus some headers normally sent by regular MUAs.

Usually check the general spam detection rules to find out what is common in spam emails.

+2
source

All Articles