Code Monkey home page Code Monkey logo

Comments (4)

codivist avatar codivist commented on May 30, 2024

Open mouth 😮 insert foot 👞

In my method where I am getting the error, I have the following line, about 10 lines above, before I send the email

$validateAddress = Mailgun::validate(Input::get('email'));
if(!$validateAddress->is_valid) {
    // return them back to the form
}

Using the Mailgun::validate call is using the public key to validate, and then later on when calling a Mailgun::send it's not switching back to the private key.

Trying some work arounds, but none have been successful yet.

from mailgun.

Bogardo avatar Bogardo commented on May 30, 2024

That is odd, I'll see if I can reproduce it.

from mailgun.

codivist avatar codivist commented on May 30, 2024

A simple test case that I just tried: (replacing [email protected] with my real email)

        $validateAddress = Mailgun::validate('[email protected]');
        try {
            Mailgun::send('emails.test', [], function ($message) {
                $message->to('[email protected]')
                    ->subject('This is a test');
            });
        } catch(InvalidCredentials $e) {
            var_dump($validateAddress->is_valid);
            return 'api-key problem!';
        }
        dd('done here');

and the email never sends

from mailgun.

Bogardo avatar Bogardo commented on May 30, 2024

@codivist Thanks, I'll be at my computer in a couple of hours.
I'm currently working on a new version of this package which is basically a rewrite so I'll see if this issue is present in the new version as well.

from mailgun.

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.