-
Member
If you have your own domain and you have a forward all set up pointing to a gmail use this.
1. Login to Gmail
2. Go to Apps Script – Google Apps Script
3. Click File/New/Script file
4. Enter the code below, save it, then click run. You will have to allow permission.
5. You will see Running function myFunction...Cancel Dismiss on the top
6.. Click View > Logs. At the bottom you'll see the total accounts verified.
The script will stop after about 100 emails. This is a limitation of Google Scripts, not the script itself. Just keep running the script over and over until all your accounts are verified
all verified emails will be deleted you can change that in the script to keep if you want.
Code:
function myFunction() {
var verified = 0;
var moveToTrash = true;
var threads = GmailApp.search('in:inbox subject:"Pokémon Trainer Club Activation"');
Logger.log("Found " + threads.length + " threads.");
threads.forEach(function(thread) {
var messages = thread.getMessages();
Logger.log("Found " + messages.length + " messages.");
messages.forEach(function(msg) {
var value = msg.getBody()
.match(/Verify your email/m);
if(msg.isInInbox() && value) {
var link = msg.getBody().match(/<a href="https:\/\/club.pokemon.com\/us\/pokemon-trainer-club\/activated\/([\w\d]+)"/);
if(link) {
var url = 'https://club.pokemon.com/us/pokemon-trainer-club/activated/' + link[1];
var options = {
"muteHttpExceptions": true
};
var status = UrlFetchApp.fetch(url, options).getResponseCode();
Logger.log("[#] Verified (" + status + "): " + url);
if(status == 200) {
verified++;
msg.markRead();
if(moveToTrash) { msg.moveToTrash(); }
}
}
}
});
});
Logger.log("Completed " + verified + " verifications.");
}
.
-
Post Thanks / Like - 1 Thanks
AznRico (1 members gave Thanks to Itzasan for this useful post)
-
Member
Originally Posted by
Shorta
Stuck at captcha using this? I do have funds...
also @mail.goman.io is correct?
I have the same issue - anyone know a solution?
-
Member
Originally Posted by
HighPoint :D
For some reason this account was not created. Check signup details! GOTTHEM
We have reached the end of the list
i always got his error, how to fix it ?
me too... i try to chage every option, but nothing
-
Active Member
Going to test this today making accounts now
Error i am getting:
[16-12-22 04:45:16:445 EST] Found 1 threads.
[16-12-22 04:45:16:810 EST] Found 96 messages.
[16-12-22 04:45:17:125 EST] Completed 0 verifications.
not sending the mails to the trash if it is verifying the emails
Anyone able to get the code above to work with labels in google example i have a label POGO and all the emails going in to that label i tried to change it to the following but no luck
Code:
function myFunction() {
var verified = 0;
var moveToTrash = true;
var threads = GmailApp.search('in:POGO subject:"Pokémon Trainer Club Activation"');
Logger.log("Found " + threads.length + " threads.");
threads.forEach(function(thread) {
var messages = thread.getMessages();
Logger.log("Found " + messages.length + " messages.");
messages.forEach(function(msg) {
var value = msg.getBody()
.match(/Verify your email/m);
if(msg.isInInbox() && value) {
var link = msg.getBody().match(/<a href="https:\/\/club.pokemon.com\/us\/pokemon-trainer-club\/activated\/([\w\d]+)"/);
if(link) {
var url = 'https://club.pokemon.com/us/pokemon-trainer-club/activated/' + link[1];
var options = {
"muteHttpExceptions": true
};
var status = UrlFetchApp.fetch(url, options).getResponseCode();
Logger.log("[#] Verified (" + status + "): " + url);
if(status == 200) {
verified++;
msg.markRead();
if(moveToTrash) { msg.moveToTrash(); }
}
}
}
});
});
Logger.log("Completed " + verified + " verifications.");
}
i also tried
Code:
var threads = GmailApp.search('in:label:POGO subject:"Pokémon Trainer Club Activation"');
var threads = GmailApp.search('in:label/POGO subject:"Pokémon Trainer Club Activation"');
got it working changed us to uk for the links in the code however had to move all my mails to my inbox unable to get it working with label
Last edited by nertman; 12-22-2016 at 05:25 AM.
-
Its stuck at Attepting to solve reCAPTCHER please wait.....! , i have funds , trying goman & pobro none work
Scheme hot like shabba madda pot
-
Active Member
Originally Posted by
Gazaman
Its stuck at Attepting to solve reCAPTCHER please wait.....! , i have funds , trying goman & pobro none work
your bid may be too low, therefore no one is solving the captcha for you.
-
Active Member
Currently stuck at what i posted here below. i have my 2captcha set to the max ($1 for 1000 captchas) the bar will not let me make the bidding any bigger
Code:
Attempting to create account(s), please wait...
Navigating to age verification page and fetching CSRF.
Successfull obtained CSRF.
Attemption to submit age verification details.
Successfully submitted age verification details.
Attepting to solve reCAPTCHER please wait.....!