Question

I was using basecamp, and for clients to reply to a message and automatically replies to it in basecamp is a pretty nice feature.

I was wondering how it's done, anybody have any ideas?

I am a PHP CodeIgniter developer, would be helpful if somebody gave me some pointers to do some research into this..

Thank you !

Was it helpful?

Solution 2

I started using SendGrid to handle parsing incoming e-mails. It works very nicely.

OTHER TIPS

Creating this kind of a functionality is quite daunting, but let's give it a try:

  • You should have some sort of identification for each e-mail send, so you know to which message/topic/object it belongs. I believe Basecamp is using a special return-address (hash@basecampnow.com) for each message.
  • Every time a new message is delivered to the object's inbox, read it contents and match all data above the ====== reply above this line =====. Check the sender's e-mail address, verify if the user is allowed to post to this object, write to the object and delete the message. You could check if you mail server has some kind of hook support, that fires every time a new messages comes in. Alternatively, you could run this as a cron-job every few minutes (but this is not very efficient, as you may imagine).

Personally, I've been wanting to make a Node.JS implementation of the incoming mail server, but I haven't come around to it yet (but check out this GitHub project for some inspiration.)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top