Knowledge Base Article

> Knowledge Base > Rapise

Created By  alexey.grinevich Wednesday, September 12, 2018

Common scenario: register a user and receive registration confirmation link by email. The most painless way for doing it.

Processing registration emails may be tricky. In most cases web mail is used (like gmail, hotmail and so on). Accessing inbox means opening it in browser. This means both authentication and dealing with webmail UI. 

It is common (in DevOps world) that web UI often changes.  Sometimes daily. Also the task of checking email requires synchronization - registration email may arrive in seconds as well as in minutes.

Another specific task is to extract information from the email. It may be password or email confirmation link.

Painless Way

We propose more painless way that accessing an UI directly. Since we need to read mailbox, we can do it using IMAP protocol. So we implemented a simple util 'RapiseImapClient.exe'. 

Then we added a couple of functions to find new email with specific subject and then extract link containing some known part (like https://mysite.com/welcome). Then we navigate to it.

 

You may find more information on these functions and all supplementary files here:

https://github.com/Inflectra/rapise-powerpack/tree/master/RapiseMailChecker

 

 

Article Info
  • Last Updated: 9/12/2018
  • Article ID: KB379
  • Views: 55