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

SwiftMailer error on sending attachments with the E-Mail Finisher #112

Closed
bwaidelich opened this issue Jun 16, 2020 · 2 comments
Closed

Comments

@bwaidelich
Copy link
Member

copied from neos/form-builder#49

If I use the new neos/swiftmailer package (^6) and try to send attachments via the e-mail finisher you get the following error:
Call to undefined method Swift_Attachment::newInstance()

From the error, it's clear that Swift_SmtpTransport class doesn't have a newInstance method.

@bwaidelich
Copy link
Member Author

The reason for this error is the usage of an unsupported version of swiftmailer/swiftmailer.

Currently the Forms framework supports version 5.x that is required by neos/swiftmailer 6.x.

composer require neos/swiftmailer:^6

fixes the issue

bwaidelich added a commit that referenced this issue Jun 16, 2020
Previously the `EmailFinisher` threw an exception when using
attachments and a `swiftmailer/swiftmailer` version 6+:

    Call to undefined method Swift_Attachment::newInstance()

This is fixed with this change. Older SwiftMailer versions
are still supported.

Resolves: #112
@bwaidelich
Copy link
Member Author

Will be fixed with version 4.3+

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

No branches or pull requests

1 participant