How to retrieve Company emails when another DocType is saved

I have a need to send batch email when a DocType document is created or saved.

All the emails are stored in DocType Company’s Email field.

How do I do this?

Never mind.

Instead of using the email in DocType Company, I can use Roles in User and achieve the same result.