0

I'm wondering how to achieve that nice feature I see on many websites today: when having conversations on social networks like Facebook or Linkedin, you can always answer an online message or status (which is not an email), by answering the email notification you receive. How do they achieve that?

As far as I can tell, I'd see two options:

  • Configure a mail server to fetch the emails and transmit the information to a Python (in my case) script to handle the data and save a database record that can be simply displayed afterwards on the website

  • Have a Python script running in the background, checking the mail server for incoming emails every few seconds (via pop3 or something)

Is there any other option? Has somebody already implemented this? What are the main pitfalls to look at? I'm asking this because I'd like to implement something similar on a web application I'm currently working on.

Thanks!

J

EDIT: I found this link which partially answers my question already: Django/Python: email reply is updated to site

Community
  • 1
  • 1
jlibioul
  • 83
  • 3
  • 10
  • 2
    I think they are not a single solution. In my case, my 'hosting' provider let to me to [send mails to a program](http://docs.webfaction.com/user-guide/email.html#email-sending-mail-to-a-script). They are also advanced mail providers with apis like https://postmarkapp.com/ with transations ( to know about failures ) – dani herrera Sep 17 '13 at 08:43
  • Thanks a lot. This confirms what I had been reading before: either use a 3rd-party service, or use a web hosting service that allows for direct mail2script routines. – jlibioul Sep 17 '13 at 12:11
  • we will wait for more acurate answer. If no more news, let it me know to write commnet as solution ... as your consideration. – dani herrera Sep 17 '13 at 12:27

1 Answers1

0

I too am working on something similar and finding this https://github.com/pinax/django-notification useful. Check it out, you'll get an idea how to implement what you want.

H H H
  • 489
  • 1
  • 7
  • 20