aisingapore / TagUI

Free RPA tool by AI Singapore
Apache License 2.0
5.62k stars 581 forks source link

Detecting email attachments and email integration with Tmail #126

Closed kensoh closed 6 years ago

kensoh commented 6 years ago

Raising this from an user email for sharing, as other users might benefit from this question.


Do you know whether TMail can read names of attachments?

The rest of the email are private specific details under NDA.

kensoh commented 6 years ago

Tmail is an open-source mailbot that can be integrate with TagUI to auto-process emails sent to an email address. More details of its features can be found below.

I've made a new commit to Tmail - https://github.com/tebelorg/Tmail/blob/master/src/mailbot.php

Now it can grab the attachment filename in an email. However, I'm not very sure how that open-source library will come into your workflow. Tmail project does 3 things -

  1. receiving incoming emails piped to its PHP mailbot.php. After receiving you can modify its PHP logic to perform other downstream tasks base on the email inputs. That includes calling TagUI automation scripts. More details on the setup and usage at Tmail homepage.

  2. it has a mailer engine for sending mass emails to a large number of recipients, by taking in a .csv file as input. Think of that as a homemade developer-friendly MailChimp. But ideally going through mail services like MailChimp is preferred, as sending from your own server, your IP will probably not yet whitelisted on various email servers such as Gmail, so if the number of emails cross a threshold, it may end up in users' spam folder.

  3. it has a mail sending API service which you can host on your server so that you can send email automatically from TagUI's automation flows. It is really easy to use in the flow by calling the api step in 1 line. But the mail service has to be set up first with your email credentials and so on, more details on Tmail homepage.

Above outlines Tmail's features. If an incoming mail is normally checked manually, then it may be possible for TagUI to replicate that checking process, instead of integrating with Tmail. Otherwise if you are setting up a dedicated email address for TagUI (to be BCC for example), then this method can be used to auto-handle some actions to be taken.