-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Sendmail transport is broken in 8.1.3 #19110
Comments
@LukasReschke what do you think? |
@zerkms Thanks a lot for your bug report. I tried to initialize the transport there manually as well but this doesn't seem to work reliably:
May I ask you whether #19047 would be sufficient for you as well? If you have alternative suggestions I'd greatly appreciate and welcome a Pull Request or some hints. 😃 |
@LukasReschke why not use |
So you would propose |
At least how Swift mailer developers suggest us to do that :-) |
Replaces #19047 and fixes https://github.com/owncloud/enterprise/issues/854 and #19110
Fixed with #19657 |
Replaces #19047 and fixes https://github.com/owncloud/enterprise/issues/854 and #19110
In the
mailer.php
that's how email is sent:where
$mailer
in an instance ofSwift_SendmailTransport
(that is created withreturn \Swift_SendmailTransport::newInstance($binaryPath . ' -bs');
)The problem is that the transport must be started with the
start()
method, otherwise its buffers are not initialized.It's not obvious why the OC uses the transport directly without
Swift_Mailer
, which handles it properly: https://github.com/swiftmailer/swiftmailer/blob/5.x/lib/classes/Swift/Mailer.php#L78https://www.dropbox.com/s/7rdogx7r3ct4gmo/screenshot-oc.png?dl=0
On the screenshot you can see that the in/out streams are not initialized, so transport cannot function properly.
The text was updated successfully, but these errors were encountered: