Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UseDefaultCredentials #12

Open
PrzemyslawKlys opened this issue Oct 24, 2020 · 9 comments
Open

Add UseDefaultCredentials #12

PrzemyslawKlys opened this issue Oct 24, 2020 · 9 comments
Labels
enhancement New feature or request

Comments

@PrzemyslawKlys
Copy link
Member

In SMTP mail UseDefaultCredentials can be called to skip need to provide credentials.

In Send-MailMessage it seems to be turned on by default if there's no login/pass prompt given or at least I think so. Would need to check sources.

In MailKit it can be achieved it seems but requires some deep dive

@PrzemyslawKlys PrzemyslawKlys added the enhancement New feature or request label Oct 24, 2020
@AvrumFeldman
Copy link

Is there any plan on implementing this? It would be very beneficial for situations where we need services to send emails using a local AD integrated SMTP server and don't want to store credentials.

@PrzemyslawKlys
Copy link
Member Author

It is wanted & therefore planned, but I lack time to implement this. But if you have time, feel free to take a bite.

@AvrumFeldman
Copy link

@PrzemyslawKlys I looked through the thread from MailKit and it seems that integrated authentication isn't implemented yet even on MailKit due to not being cross compatible.

@PrzemyslawKlys
Copy link
Member Author

@AvrumFeldman it probably never will be cross-compatible, but from what I see jstedfast/MailKit#332 (comment) someone did do it on Windows, which would be enough.

@AvrumFeldman
Copy link

@PrzemyslawKlys I didn't realize you are fine with non cross compatibility. I will try to give it a shot over the next week (hopefully).

@PrzemyslawKlys
Copy link
Member Author

@AvrumFeldman any luck?

@AvrumFeldman
Copy link

@PrzemyslawKlys what a coincident you are asking now. I've just worked this night a few hours on it and I'm (hopefully) almost done.
image

@PrzemyslawKlys
Copy link
Member Author

Great - we're only missing this and signing functionality. Looking forward to this!

@PrzemyslawKlys
Copy link
Member Author

Implemented in:

Hopefully will work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants