# NAME Net::POP3::XOAuth2 - It enables to use XOAUTH2 authentication with [Net::POP3](https://metacpan.org/pod/Net%3A%3APOP3) # SYNOPSIS use Net::POP3; use Net::POP3::XOAuth2; my $user = ''; my $token = ''; my $pop = Net::POP3->new('pop.gmail.com', Port => 995, Timeout => 30, SSL => 1, Debug => 1); $pop->xoauth2($user, $token); # or if you use office365 $pop->xoauth2($user, $token, 1); # DESCRIPTION Net::POP3::XOAuth2 is an extension for [Net::POP3](https://metacpan.org/pod/Net%3A%3APOP3). This allows you to use SASL XOAUTH2. # METHODS - xauth2 ( USER, TOKEN ) Authenticate with the server identifying as `USER` with OAuth2 access token `TOKEN`. # LICENSE Copyright (C) Kizashi Nagata. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. # AUTHOR Kizashi Nagata