Best way to handle multiple email inboxes programmatically (SMTP & IMAP)?

powermix

Regular Member
Joined
Aug 30, 2011
Messages
391
Reaction score
57
So I am planning to handle multiple email inboxes programmatically. These are free email inboxes.

I have been doing tests with these 5 providers: gmail, yahoo, aol, outlook and hotmail

With outlook and hotmail (same company), there is no login problem. You can login via SMTP & IMAP without an issue. From wherever you want.

With yahoo and aol (same company), you need to use an "App Password" to login via SMTP & IMAP. This is different from the normal "Email Password". From wherever you want.

But Gmail seems to have the most secure environment. You need to activate the IMAP access manually. And then the "Allow less secure apps" as well. And if you log in from another countries, chances are you will get a warning. The "Allow less secure apps" solution is ending on May 30th based on that: https://support.google.com/accounts/answer/6010255

Gmail will require "App Password" to log in via SMTP & IMAP.

Ideally, the best option would be to find a provider that sells email accounts with "App Password" already generated. Know one?
But if I am not able to find such...is there a way to generate an "App Password" programatically?

Will need to do everything programmatically, because I am planning to work with 1.000+ email accounts.
 
For now don't deal with Gmail SMTP's cause their filters will still block you no matter you disable captcha or less secured.

Others are fine.

Good luck :)
 
I was able to bypass using the app password by authenticating my login attempt with Google Unlock Captcha.

So even if you used "App Password", you got a warning message as if something suspicious was happening?

For now don't deal with Gmail SMTP's cause their filters will still block you no matter you disable captcha or less secured.

Others are fine.

Good luck :)

Gmail is the main free email provider, so working with Gmail is a must.
 
Gmail is the main free email provider, so working with Gmail is a must.

If your dealing with custom mailer possible with small tweaks you can make them work if your way of working is general its almost not possible to make bulk gmails work on SMTP. But still try and try you will surely succeed :)

Good Luck . . :)
 
So even if you used "App Password", you got a warning message as if something suspicious was happening?
I haven't tried with the App Password. I use the normal email password to establish a POP3 connection.

As you mention, I had to activate the POP access in Gmail and enable less secure apps. At this point, the script worked on my local machine.

But the login attempt was blocked from a remote machine. It worked after confirming it in the Unlock Captcha.

Note that I don't know if this will work for SMTP, as I use a 3rd party API to send the emails.
 
I haven't tried with the App Password. I use the normal email password to establish a POP3 connection.

As you mention, I had to activate the POP access in Gmail and enable less secure apps. At this point, the script worked on my local machine.

But the login attempt was blocked from a remote machine. It worked after confirming it in the Unlock Captcha.

Note that I don't know if this will work for SMTP, as I use a 3rd party API to send the emails.

Yeah, that's exactly what I faced at first. If using normal credentials, enable less secure apps and connect via POP / SMTP from a different device, you will get that warning, that gets unlocked via the Unlock Captcha.

However, if you use "App Password", I believe that you can bypass those verifications.
 
Use outlook. You can use automation tools like selenium to add an imap password to Gmail and other mail providers you mentioned. It requires programming knowledge and can still put accounts at risk. Maybe you can hire someone to do this on the forum.
 
Would you guys recommend using a different proxy to log in on each email account?

Taking into account that we are going to manage 1.000+ accounts.

And if so..would a datacenter type of proxy be enough or better to use residential ones?
 
I think that for generating the App Password, a proxy is needed. But once you have the App Password, you could log in from the same device.
 
You can use webmail to avoid IMAP, but you'll still have an SMTP back end.
 
Someone else that has experience with this and can help me out?
 
Hello. Did you find something for your problem ? I have a lot of emails to manage and i'm looking for a solution too.
 
Nothing...the problem of Gmail is that you need to add a 2FA phone number, in order to generate an App Password.
 
Back
Top