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

feat: Allow NoAuthentication for OnPremise MAIL destination #5137

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gregorwolf
Copy link

This should fix #5136

destination.proxyType === 'OnPremise' &&
destination.authentication === 'NoAuthentication'
) {
return { username: '', password: '' };
Copy link
Contributor

@ZhongpinWang ZhongpinWang Nov 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is the best way setting empty username and password. According to https://nodemailer.com/smtp/#authentication, if authentication is not needed, maybe we should leave auth out in createTransport. Could you please test this?

@@ -76,6 +76,12 @@ function getCredentials(
destination: Destination,
originalProperties: Record<string, any>
): { username: string; password: string } {
if (
destination.proxyType === 'OnPremise' &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, since internet smtp server can also have no username/password, I would leave this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants