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

ERDDAP not sending emails when emailUserName is not an email address #99

Open
turnbullerin opened this issue Apr 14, 2023 · 0 comments
Open

Comments

@turnbullerin
Copy link

turnbullerin commented Apr 14, 2023

Hi!

I've been having a weird issue where I'm not getting any emails from ERDDAP despite the connection properties all working when I try to send mail using Python from the same server.

I think I tracked down the error though. ERDDAP detects if email is active with this:

emailIsActive = //ie if actual emails will be sent
String2.isSomething(emailSmtpHost) &&
emailSmtpPort > 0 &&
String2.isEmailAddress(emailUserName) &&
String2.isSomething(emailPassword) &&
String2.isEmailAddress(emailFromAddress);

However, because I am using a mail API client (think Twilio, because my security department insists its the only way I'm allowed to send email), my emailUserName is NOT an email address, it is an alphanumeric string (e.g. USER12345). Since this check fails, ERDDAP thinks my email settings aren't valid and won't send email.

Can we get a patch to have emailIsActive only check if emailUserName isSomething() instead?

Erin

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

No branches or pull requests

1 participant