A
A
anonymon2018-02-21 10:43:06
Email
anonymon, 2018-02-21 10:43:06

Is it possible to receive an email and send it using the GET / POST method?

Is it possible to immediately send a get or request with the subject of this letter and, if possible, the content to the server when receiving an email? The server is in php or go, but that doesn't matter. The bottom line is that you need to somehow automate the transfer of the letter to the server. Is it even possible to do this? If so, please provide links to literature or ready-made solutions, thanks.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex McArrow, 2018-02-21
@AlexMcArrow

Yes it is possible.
Receiving a letter and sending it to a script - when receiving a letter, the mail server runs the script and passes the context of the letter (headers and body) in the parameters (example for postfix - https://thecodingmachine.io/triggering-a-php-script...
Loading emails from the mailbox - cron connects to the mail server and receives new emails (example - https://garrettstjohn.com/articles/reading-email-php/)

O
Oleg, 2018-02-21
@402d

it’s easier to teach the site to independently check the mailbox by cron.
For php
https://packagist.org/?q=imap&p=0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question