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

Missing user name #84

Open
RalphAtHamburg opened this issue Apr 8, 2024 · 3 comments
Open

Missing user name #84

RalphAtHamburg opened this issue Apr 8, 2024 · 3 comments

Comments

@RalphAtHamburg
Copy link

RalphAtHamburg commented Apr 8, 2024

After upgrading from v0.4.0.1 we got the following error:

ArgumentError (SMTP-AUTH requested but missing user name)

ruby 3.3.0
rails 7.1.3.2

@svenne87
Copy link

svenne87 commented May 28, 2024

Experiencing the same issue. Using plain authentication without user_name or password gives the same error. Setting these values as empty strings gets me pass the error but will not let me connect to the SMTP we are using.

If we skip setting the authentication to plain it works. Is there a mention of this that i missed?

ruby 3.3.1
rails 7.0.8.3

@einjohn
Copy link

einjohn commented Oct 1, 2024

The commit c02ce79 is the corresponding change, I think. With that change the arguments are validated when authtype is given. Reading the RFC 4616 (The PLAIN Simple Authentication and Security Layer (SASL) Mechanism) one might argue that this is not an issue but a user and secret are required when using the :plain authtype.

Our solution (using Rails) was to remove the authentication: :plain from the smtp_settings, like svenne87 already suggested.

@RalphAtHamburg
Copy link
Author

Thanks,, it was our fault as we have nouser or sevret. Removing the authentication: :plain is the solution.

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

No branches or pull requests

3 participants