G
G
German Gavrilov2013-01-21 20:11:48
PHP
German Gavrilov, 2013-01-21 20:11:48

Creating an API via email?

Background:
I work with the megaplan module of transactions. In addition to the fact that it has no API, the triggers are also rather weak.
Task:
I want to solve minimal integration issues, such as synchronization of transaction statuses and SMS informing
Idea:
You can send an email with different text for different events in the megaplan.
You can write “something” in PHP that will receive mail from a secret mailbox, parse the text of letters and do some kind of action.
Here's what this "something" is called and where to dig.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
muslimov, 2013-01-21
@muslimov

In general, writing a stable service that will perform this task is not a trivial task. I advise you to look at Parse API Sendgrid.com - it is just focused on such functions. All you have to do is write an integration with them.

A
Arsen, 2013-01-21
@mekegi

Pull the script by cron. In the script itself, you need to pick up mail from your secret server, at least by imap, at least by pop3, and this and that can puff. Well, then parsing the subject of the letter and content for the presence of placeholders. in order not to process the same letter twice, either delete them immediately after processing in the same script or save the hash of the processed letter somewhere in the database

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question