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

Postmark does not work anymore with laravel 5.2 and laravel-postmark-provider 2.0 #797

Closed
bnova-stefan opened this issue Apr 3, 2016 · 6 comments
Labels

Comments

@bnova-stefan
Copy link

I have upgraded to invoiceninja 2.5.1.2 and after the upgrade postmark does not work anymore because of this error message.

FatalErrorException in LaravelMailProvider.php line 60:
Call to undefined method Illuminate\Mail\Mailer::setLogger()

@hillelcoren
Copy link
Member

I'm away for a week, I'll take a look when I get back. In the meantime you
may want to create an issue with postmark library.
On Sun, Apr 3, 2016 at 11:28 AM Stefan Welsch notifications@github.com
wrote:

I have upgraded to invoiceninja 2.5.1.2 and after the upgrade postmark
does not work anymore because of this error message.

FatalErrorException in LaravelMailProvider.php line 60:
Call to undefined method Illuminate\Mail\Mailer::setLogger()


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#797

@bnova-stefan
Copy link
Author

It seems that an upgrade to laravel-postmark-provider 3.0 solved the problem with the exception.
The problem is then, that the mail header ist just set to text/plain instead of text/html...
I could solve the problem the following way:
In vendor/wildbit/swiftmailer-postmark/src/Postmark/Transport.php

  • Row 167 Instead of $payload['TextBody'] -> $payload['HtmlBody']

@hillelcoren hillelcoren added the bug label Apr 3, 2016
@hillelcoren
Copy link
Member

Great, thanks for the info!

As mentioned earlier it'd be helpful if you could follow up with the postmark library.

@hillelcoren
Copy link
Member

I've updated the composer file but haven't been able to replicate the problem with HTML emails

@bnova-stefan
Copy link
Author

Yes it depends on the configuration. It works as long you sent no additional pdf invoice as attachment to your customer. I saw that you already reported a similar problem here ActiveCampaign/laravel-postmark-provider#2

@hillelcoren
Copy link
Member

Thanks for the info, I see the problem now.

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

No branches or pull requests

2 participants