Hi, please try the development version that can be found here:
http://downloads.wordpress.org/plugin/cimy-swift-smtp.zip
The only thing I changed is to update Swift Mailer to v4.2.2.
If doesn’t work yet I ask you to tell me more which kind of email is trying to send WooCommerce:
do they contain attachments? If yes which ones?
Thanks.
Thank you Marco!
I have downloaded it, I’ll try ASAP and report back to you.
In the mean time I can tell you that are only HTML emails (including linked images), no attachments.
Ok, but maybe there is an image linked? Like a footer or an header?
If yes can you try to disable it (if still failing)?
Yes. There’s one image linked in the HTML body of the email, but no image attached. Only the URL for loading it from the site in the HTML body.
Ok pls try the development version first.
If still fails try to remove this image.
I’ll try it some hours later. And I’ll report back when tried 😉
Ok I was able to reproduce the issue, I am afraid both my update and my workaround don’t fix the issue 🙁
So I filed a ticket against Swift Mailer, but I am not sure when this will be fixed.
https://github.com/swiftmailer/swiftmailer/issues/274
Ok, an ugly workaround that works is this one:
edit the file: /my-path/wp-content/plugins/cimy-swift-smtp/Swift/lib/classes/Swift/ByteStream/FileByteStream.php
at line: 135
change the line from:
if (!$this->_reader = fopen($this->_path, 'rb')) {
to:
if (empty($this->_path))
return null;
if (!$this->_reader = fopen($this->_path, 'rb')) {
I know it is not the best, but for now we can live with it until they fix the bug in Swift Mailer.
Thank you so much Marco!! 😉
I’ll try the temporary fix while waiting for the Swift mailer to be fixed.
Indeed, was a bug in Swift Mailer, in the meanwhile I added a workaround, a new version will come out on Monday.