How to Create a JMeter Script to Check Email
User registration is a core functionality and e-mail verification is a standard
part of this functionality. The Mail Reader Sampler can read (and optionally delete) mail messages using POP3(S) or IMAP(S) protocols.
If you use gmail account, firts of all you should enable IMAP. Go to your e-mail account - Settings - Forwarding and POP/IMAP - Enable IMAP.
Configure Mail Sampler as it is shown on the picture:
Add Response Assertion as child of Mail Sampler and validate response.