I want my program to log in to the users email account with the information they provide and click on the emails and then click the links inside the email?
If you know how to do this in browser or httpwebrequest Im all ears. Thanks.
I want my program to log in to the users email account with the information they provide and click on the emails and then click the links inside the email?
If you know how to do this in browser or httpwebrequest Im all ears. Thanks.
As was asking about logging into a user account and “clicking” links inside emails: this is technically possible, but treat it as a backend/parsing task, not UI automation, and only with explicit user consent. Many providers (Gmail, Outlook) restrict basic username/password logins and require OAuth or app-specific credentials — plan for that up front. See IMAP (RFC 3501) for how mail access works and Google OAuth 2.0 for provider-auth constraints.
Recommended workflow (reliable and automatable)
Minimal C# flow (concept only):
using MailKit.Net.Imap;
using MimeKit;
using System.Net.Http;
// connect/authenticate
// fetch message.HtmlBody
// parse links with HtmlAgilityPack
// use HttpClient or Playwright to visit link(s) Troubleshooting notes
As suggested, post any code you try (auth method, sample fetching code) for targeted fixes. If nothing else, start by demonstrating an IMAP fetch and the raw message HTML.
Jump to Post— lolafuertes 145Please post what you dessigned/written so far.
Sincerely
Please post what you dessigned/written so far.
Sincerely
Is it possible to do this in the webbrowser and just write a ton of if statements to click the link and another one to invoke the link inside the email?
Bump....
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.