-
Notifications
You must be signed in to change notification settings - Fork 358
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
Unable to send email with Office 365 SMTP #982
Comments
Hi @burak40 - a quick look at that linked document says
Did you try setting that alternative address too? |
Yes, smtp-legacy.office365.com used also, same error |
Hello, I have same problem, did you solve? thanks |
Hi @assices , no still have this problem |
Hi. Then I don't get the same error, but still can't send emails, now I face this error: ArgumentError (SMTP From address may not be blank: nil): I'm still trying to solve it. Update: Does the job !! |
@m4gn3to has a good tip above. Worth validating if you have the time. I'm traveling for the next few weeks and will revisit this once I'm back. |
Hi all - just an update on the email story: in v1.39.8, I added a tool to test email configurations. Could you update to that version and try this out? It should reveal exactly where the issue is... |
I'm on version 1.40.6 should I try expressly with version 1.39.8? When I have the config for Office 365 I get a 500 error in the interface (while Rails.application.config.action_mailer.smtp_settings gives the correct settings) this is the error on console:
|
The latest version (v1.40.6) will do as well. That new bundled tool should give us the exact error. We have a known working configuration for 365 - does it work for you? When you can, post the output from these steps. |
Unfortunately those settings don't work for me 867a:/opt/PasswordPusher$ ./bin/pwpush console --> Configured FROM: address: '"Hosting" email@domain' --> If you see an error, please paste this output into a GitHub issue for help. /opt/PasswordPusher/vendor/bundle/ruby/3.2.0/gems/net-smtp-0.5.0/lib/net/smtp.rb:698:in `initialize': no implicit conversion of Symbol into Integer (TypeError)
|
authentication :login and :cram-md5 (and :cram_md5), I've tried all of them with the same result. |
This has been a longtime pain. I've just release v1.40.7 which removes all defaults from SMTP settings. If you don't need the setting, comment it out in This should reduce the number of settings in |
You, sir, are a champion! The update did the the trick. I've commented out the following settings: Mail received without a hitch. |
Wow excellent! That was a longtime bug. Great to hear that it works now. |
Let's hope this effort also helps others. Thank you again for your effort and dedication. P.S. The copyright is stuck on 2023, fix that in a future version ;) |
Hi all - I'll close out this issue but if anything remains, please let me know! |
🐛 Bug Report
I want to enable Login and for that I need to setup SMTP. I've set all these parameters
PWP__ENABLE_LOGINS: true
PWP__ALLOW_ANONYMOUS:true
PWP__MAIL__RAISE_DELIVERY_ERRORS:true
PWP__MAIL__SMTP_ADDRESS:smtp.office365.com
PWP__MAIL__SMTP_PORT:587
PWP__MAIL__SMTP_USER_NAME:email
PWP__MAIL__SMTP_PASSWORD:pass
PWP__MAIL__SMTP_AUTHENTICATION:plain
PWP__MAIL__SMTP_STARTTLS:true
PWP__MAIL__OPEN_TIMEOUT:10
PWP__MAIL__READ_TIMEOUT:10
PWP__HOST_DOMAIN:azurewebsites.net
PWP__HOST_PROTOCOL:https
PWP__MAIL__MAILER_SENDER:email
PWP__DISABLE_SIGNUPS:false
PWP__MAIL__SMTP_ENABLE_STARTTLS_AUTO:false
I'm receiving this error Net::SMTPAuthenticationError (504 5.7.4 Unrecognized authentication type. I used login, same problem. Then I googled the 504 error code and followed this article https://stefanos.cloud/kb/how-to-allow-legacy-tls-smtp-clients-in-exchange-online/ but still not working. I deleted this parameter PWP__MAIL__SMTP_AUTHENTICATION and tried again, still not working with the same error.
🔬 How To Reproduce
Steps to reproduce the behavior:
Environment
Where are you running/using Password Pusher?
If applicable, what version of Password Pusher?
Screenshots
I'm getting Error 500
📈 Expected behavior
Send email from SMTP
📎 Additional context
The text was updated successfully, but these errors were encountered: