Git Product home page Git Product logo

Comments (11)

svendehens avatar svendehens commented on August 30, 2024

Hi, I'm getting the same error (as per your second one). Did you solve it?

from laravel-mailjet.

FrancescJR avatar FrancescJR commented on August 30, 2024

Nope, so far I'm just forcing the exact version 3.0.0 .... in my composer,json:

    "mailjet/laravel-mailjet": "3.0.0",

from laravel-mailjet.

Loots-it avatar Loots-it commented on August 30, 2024

I have the same issue

from laravel-mailjet.

mtt786 avatar mtt786 commented on August 30, 2024

Can you please share your laravel version?

from laravel-mailjet.

FrancescJR avatar FrancescJR commented on August 30, 2024

Sure! right now it's :
"laravel/framework": "^8.81", (8.83.11)

from laravel-mailjet.

Loots-it avatar Loots-it commented on August 30, 2024

It does work for me now, but I had to upgrade both the laravel framework to laravel 9 and this package at the same time.

from laravel-mailjet.

pelomedusa avatar pelomedusa commented on August 30, 2024

It does work for me now, but I had to upgrade both the laravel framework to laravel 9 and this package at the same time.

@Loots-it Would you mind sharing the exacts versions you have installed to get it to work please? Thanks in advance

from laravel-mailjet.

mattHGuestServices avatar mattHGuestServices commented on August 30, 2024

installing laravel 9 did fix this issue. I think you would need to install a previous mailjet version to get it running on a laravel version <=8. Alternatively you can use the API /send for transactional emails rather than using the mailjet driver.

an example I successfully used with laravel 8 is:

use Mailjet\LaravelMailjet\Facades\Mailjet;
use Mailjet\Resources;

$body = [ 'FromEmail' => "[email protected]", 'FromName' => "Your Mailjet Pilot", 'Recipients' => [ [ 'Email' => "[email protected]", 'Name' => "to name" ], [ 'Email' => "[email protected]", 'Name' => "another persons name" ] ], 'Subject' => "Your email flight plan!", 'Text-part' => "Dear passenger, welcome to Mailjet! May the delivery force be with you!", 'Html-part' => "<h3>Dear passenger, welcome to Mailjet!</h3><br />May the delivery force be with you!" ]; $sendTransactionalEmail = Mailjet::post(Resources::$Email,['body' => $body]);

from laravel-mailjet.

Owen-oj avatar Owen-oj commented on August 30, 2024

I encountered the same issue on Laravel 9. adding "symfony/http-client": "^6.1" to my composer.json did the trick

from laravel-mailjet.

oleksandr-mykhailenko avatar oleksandr-mykhailenko commented on August 30, 2024

Please, use laravel version 8+

from laravel-mailjet.

riiad avatar riiad commented on August 30, 2024

@oleksandr-mykhailenko I'm using Laravel 9 and got this issue too.
symfony/http-client is a dev dependency of the laravel/framework package (since 9.*).

image

from laravel-mailjet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.