An alternate solution if you want to be able to manage your email using all of the gmail specific features would be to use their API:
https://developers.google.com/gmail/api/v1/reference/ <https://developers.google.com/gmail/api/v1/reference/> In which case, you might want to take a look at REST::Client. -Dan > On May 12, 2018, at 4:20 AM, David Pottage <da...@electric-spoon.com> wrote: > > In the case of gmail email, the easiest approach would be to access the > mailbox using the IMAP protocol. See Mail::IMAPClient. This will avoid using > a web browser of any sort, and instead use a protocol that is designed for > use by scripts and other programs.