B4J Question How can POP receive Email only for specific (alias) email address?

Diceman

Active Member
Licensed User
I am using POP on my server to receive emails sent to a specific email alias.
My email provider allows me to create aliases so my account may have 3 or 4 different email addresses for the same popserver, user/password.

How do I restrict the POP to download only the emails for that particular alias (email address) at popserver, user/password? Because right now it is downloading the emails for all of the aliases for that account. I was hoping there would be something like POP.From.Add(emailaddress) so it receives only the email for a particular alias.

TIA
 

Diceman

Active Member
Licensed User
Thanks, that will work.

In case this can help someone else, here is how you can process only specific emails on your app.

I will use DownloadMessageTop with "false" as the last parameter which will leave the email on the server. If the "to" address of this download is the alias email address I'm looking for, I will re-execute DownloadMessage with "True" as the last parameter to get the complete message and delete the email from the server. The other emails with different email aliases not intended for my program will remain on the server because I did not delete them with DownloadMessageTop, so the appropriate email client will get to those eventually.

Sounds like a plan.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…