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

Return type of MailSo\Base\StreamFilters\LineEndings::filter($in, $out, &$consumed, $closing) should either be compatible with php_user_filter::filter($in, $out, &$consumed, bool $closing): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/html/custom_apps/snappymail/app/snappymail/v/2.19.7/app/libraries/MailSo/Base/StreamFilters/LineEndings.php#7 #610

Closed
jiriks74 opened this issue Nov 2, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@jiriks74
Copy link

jiriks74 commented Nov 2, 2022

Describe the bug

I cannot send emails from specific domain even after setting the smtp correctly. This domain works with other clients.

To Reproduce

Steps to reproduce the behavior:

  1. SnappyMail admin panel
  2. Add new domain atlas.cz
  3. Set imap to use imap.atlas.cz, set encryption to ssl, use default port
  4. Set smtp to smtp.centrum.cz (centrum.cz owns atlas.cz where the email is), use STARTTLS and default port (or ssl and default port)
  • Do not use short login for this one
  1. Log into the email from atlas.cz
  2. Try to send a message to anyone
  3. Get Message could not be sent error

Expected behavior

Message sent

Screenshots

Screenshot (in Czech, sorry)

image

Please complete the following information:

  • Browser: Firefox 104.0.2
  • IMAP daemon: idk
  • PHP version: 8.1.11
  • SnappyMail Version: 2.19.7

Debug/logging information

Error from Nextcloud logs
Return type of MailSo\Base\StreamFilters\LineEndings::filter($in, $out, &$consumed, $closing) should either be compatible with php_user_filter::filter($in, $out, &$consumed, bool $closing): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/html/custom_apps/snappymail/app/snappymail/v/2.19.7/app/libraries/MailSo/Base/StreamFilters/LineEndings.php#7
@jiriks74
Copy link
Author

jiriks74 commented Nov 2, 2022

How do i get this fix I I don't want to wait for the next release on Nextcloud? I cannot see any instructions on how to build the plugin...

@the-djmaze
Copy link
Owner

Either:

  1. remove snappymail and install again (i've updated the release)
  2. Or modify file apps/snappymail/app/snappymail/v/2.19.7/app/libraries/MailSo/Base/StreamFilters/LineEndings.php

@the-djmaze the-djmaze added the bug Something isn't working label Nov 4, 2022
@jiriks74
Copy link
Author

@the-djmaze

Sorry, but could you reopen this again, please?

I haven't sent any emails from that email for some time, but today I tried and it didn't send emails again. I'll try to get some logs once I'll be able to.

@the-djmaze
Copy link
Owner

Then please open a new issue with the exact error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants