Receiving Email and SMS Codes in BAS
The Mail (IMAP) and Phone Confirmation modules in Browser Automation Studio — read confirmation emails and pull SMS activation codes to get through registration verification.
Almost every registration ends the same way: “we sent you a code.” Getting past that step automatically is what the Mail and Phone Confirmation modules are for — one reads email codes, the other receives SMS codes.
Reading email codes — the Mail module
The Mail module works with incoming mail over IMAP. It connects to a mailbox and lets a bot read what arrives, which is exactly what’s needed to pull a confirmation link or code out of an inbox.
Its actions cover the full inbox workflow:
- Set login data — connect to the mailbox over IMAP.
- Get the last email / find an email by subject — locate the confirmation message.
- Get email content — read the body to extract the code or link.
- Manage folders and messages — find emails in a folder, copy, move or delete by id, list emails by subject, and create, rename or delete folders.
Pair it with regular expressions to extract the exact code from the message body.
Receiving SMS codes — the Phone Confirmation module
When a site demands a phone number instead, the Phone Confirmation module works with SMS services — specialised sites that rent out numbers for receiving activation codes and call-resets. Most popular services (such as sms-activate.ru) are built into the module, and you can write your own integration for a service that isn’t.
Its actions:
- Get phone number — rent a number for the target site.
- Get activation code — wait for and read the SMS code that arrives.
- Change activation status — mark the rental done, or report a bad number.
- Get available numbers count / list of sites / list of countries — check availability before committing.
The verification layer
Together these two modules are the verification layer of an auto-registration bot. The flow is: fill the form → if it asks for an email code, read it over IMAP with Mail → if it asks for a phone code, rent a number and read the SMS with Phone Confirmation → submit, and the account is through. Get this layer solid and the rest of registration is just form-filling.
FAQ
How does a BAS bot read a confirmation email?
The Mail module connects to a mailbox over IMAP and reads incoming messages. You can fetch the last email, find one by subject, get its content and manage folders — enough to pull a confirmation link or code out of an inbox.
How does BAS get an SMS verification code?
The Phone Confirmation module works with SMS services that rent numbers for receiving activation codes. Many services such as sms-activate.ru are built in: request a number, wait for the code, then submit it on the site.
- Browser Automation Studio: The Complete Practical GuideGuide
- Building Your First Bot in Browser Automation StudioA step-by-step walkthrough of creating your first working BAS bot — from a blank project to a flow that navigates, extracts data, and runs in multiple threads.
- Setting Up Proxies in Browser Automation StudioHow to configure proxies in BAS the right way — proxy types, per-thread assignment, rotation, and the checks that keep multi-account bots from getting flagged.
- Finding Elements in BAS: Selectors That Don't BreakHow element search works in Browser Automation Studio — CSS vs XPath selectors, why recorded ones break, and how to write selectors that survive page changes.