GO Lang: read email -- send HTTP Post
Budget: €30 – €250 EUR
I need a small application written in GO lang 1.17.
The APP reads emails from an IMAP mailbox.
The email has a JSON object in the message, which has to be parsed.
From the JSON, the APP builds an HTTP Post message
- The POST goes to 'url'
- If provided, the token gues into the header variable e.g. "Api-Token": `kgkjghkjhg`
- If provided, the user and password will be used for basic authentication
- The 'data' portion goes into the body of the POST message
The post will be sent and the response of the HTTP post will be evaluated and put into an email to the 'reportMail', having the same subject as the original mail
If the 'contactMail' is provided, any return of the server other than HTTP 2xx will also go to 'contactMail'.
After processing, the processed mail goes into the folder /inbox/processed
The APP reads emails from an IMAP mailbox.
The email has a JSON object in the message, which has to be parsed.
From the JSON, the APP builds an HTTP Post message
- The POST goes to 'url'
- If provided, the token gues into the header variable e.g. "Api-Token": `kgkjghkjhg`
- If provided, the user and password will be used for basic authentication
- The 'data' portion goes into the body of the POST message
The post will be sent and the response of the HTTP post will be evaluated and put into an email to the 'reportMail', having the same subject as the original mail
If the 'contactMail' is provided, any return of the server other than HTTP 2xx will also go to 'contactMail'.
After processing, the processed mail goes into the folder /inbox/processed
Related categories:
Golang