WHAT I HAVE:
Visual Basic 2019, .NET 4.6.1, WinForms, Mailkit
MY ISSUE:
I've figured out how to configure my desktop app to send someone an email from me (from the app). (Since the server is "smtp.aol.com", I had to create an "app password" for the credentials.)
What if I want my app to enable the end user to send an email to someone from himself/herself? Is that possible? So far, when I set the message.From list to only other people's email addresses or set message.Sender to someone else's than mine, I get a "Mailbox Unavailable" error. (And when the "From" list includes me and the "Sender" is me, the email is sent, but I am identified on it as the sole 1 sending it.) (I'm using my own [my app's] SMTP address and user-name/password credentials for authentication. Show those things be instead of the one who's "supposedly" doing the sending in order for the app to send the email "from him/her"? If so, and their SMTP is "smtp.aol.com", should the password be theirs [which they'd supply] or the "app password" I referred to earlier?)
I need to be able to set up my desktop app so that people can use it to send basic emails to one another. (That, and internet access general, is a minor part of the overall app, but I'd like to include it, because it's a contact-list program that stores info about people/organizations, including email addresses, and it'd be a pity if those addresses can't be used except through a separate program/browser, where none of my app's features apply.)
I'm guessing tentatively that I should configure my app to let the user determine the SMTP address (for Connect) and enter his/her credentials (for Authenticate) before my app sends his/her email. Is this the best solution (for a desktop app, anyway)? My only concern, after reading around the net about this, is what the password should be if they're using "smtp.aol.com"--their password or the "app password"?
I'd ask AOL, but it's the middle of the night, and their chat lines are closed right now.