NAME

Gmail::Mailbox::Validate - Find if the username has a valid mailbox in gmail

VERSION

Version 0.18

SYNOPSIS

This module just checks if the given username has a valid mailbox in gmail.

If you find any issues in using the module, please don't hesitate to email me: Jefp@gmx.de

use Gmail::Mailbox::Validate;

my $v = Gmail::Mailbox::Validate->new();
print "mailbox exists" if $v->validate($username);

Or run via one-liner perl:

$ perl -MGmail::Mailbox::Validate -le 'print "mailbox exists" if Gmail::Mailbox::Validate->new()->validate("mytest")'

Or run with docker:

$ docker run geekml/gmbox mytest

Plese note:

1. Your host running this program should have access to port 25 of gmail servers. Many providers disable users to access external SMTP port.

2. If the program shows mailbox not existing, it doesn't mean you can register that username. Because the username can be reserved by google, or has been deleted.

SUBROUTINES/METHODS

new

Initialize the object.

validate

Validate if the given username has mailbox in gmail.

AUTHOR

Yonghua Peng, <pyh at cpan.org>

BUGS

Please report any bugs or feature requests to bug-gmail-mailbox-validate at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Gmail-Mailbox-Validate. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Gmail::Mailbox::Validate

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

This software is Copyright (c) 2019 by Yonghua Peng.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)