'How can I get get a particular piece of data from an email?

Good morning! I'm trying to automate the process of logging into my email account, accessing the first email there, opening it and retrieving the necessary code. However, I'm not fluent in python/robot framework.

Could I just look for something close to the code I need, save that to a string and then trim it?

Thank you!



Solution 1:[1]

You can find all the documentation you need at the ImapLibrary. The keyword Get Email Body should do the job. After that you can use String Library to manipulate the body you saved in the previous step.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Razvan Baba