Comments (1)
I'm trying to use the
ContactListService.updateEmail()
method to update the emails of users on my list. But since updating to Laravel 9 and the the latest client version (3.0.2) this is failing each time with the error:
Call to undefined method Mailjet\LaravelMailjet\Model\Contact::setProperties()
It's failing on in this partpublic function updateEmail(string $id, Contact $contact, string $oldEmail): array { $response = $this->mailjet->get(Resources::$Contactdata, ['id' => $oldEmail]); if (! $response->success()) { throw new MailjetException(0, 'ContactsListService:changeEmail() failed', $response); } $oldContactData = $response->getData(); if (isset($oldContactData[0])) { $contact->setProperties($oldContactData[0]['Data']); } .... }
When I look at the
Contact
model and it looks like it doesn't have asetProperties
method so this error makes sense. Perhaps it needs to besetOptionalProperties
instead?Seems like a bug in the code that needs fixed?
Thank you for this note. The bug was fixed and merged. Enjoy
from laravel-mailjet.
Related Issues (20)
- Why is documentation duplicate and inconsistent? HOT 1
- Using the Subject Line from a Template HOT 2
- Laravel 9 support HOT 4
- Tag 3.0.1 doesn't respect semantic versionning (introduce breaking change) HOT 2
- Release 3.0.1 broken for laravel 8
- Missing dependencies? HOT 11
- Driver [mailjet] not supported HOT 6
- Illuminate\Mail\Mailer::__construct() $transport error HOT 1
- send API /send to AWS SQS queue HOT 1
- Reply-to addresses HOT 2
- User is not set
- User is not set. HOT 1
- Inline attachments don't work HOT 2
- Laravel 10 not supported HOT 9
- Status says sent, but nothing is received or recorded under message events. HOT 4
- Is it possible to disable Mailjet Tracking when sending mails HOT 1
- Can't set the X-MJ-CustomID header HOT 3
- missing symfony/http-client dependency HOT 2
- Driver [mailjet] not supported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-mailjet.