Giter Site home page Giter Site logo

Comments (6)

dehypnosis avatar dehypnosis commented on May 18, 2024 2

changed
MAILGUN_DOMAIN=https://api.mailgun.net/v3/my.domain
to
MAILGUN_DOMAIN=my.domain

and works.

from mail.

thetutlage avatar thetutlage commented on May 18, 2024

Impossible for me to tell why

You didn’t shared any code on how you send the email

What’s the output of mail.send method?
Are there any exceptions?

from mail.

pirmax avatar pirmax commented on May 18, 2024

I have no console.log() when I execute this function...

const user = await User.find(1)

    const result = await Mail.send('emails.confirmation', user.toJSON(), (message) => {
        message
            .to(user.email)
            .from('Website <[email protected]>')
            .subject('Please, confirm your Domain account!')
    })

    console.log(result)

from mail.

thetutlage avatar thetutlage commented on May 18, 2024

Are there any exceptions being thrown or the program just hangs?

from mail.

RezaHaidari avatar RezaHaidari commented on May 18, 2024

@thetutlage

await Mail.send('welcome',{}, (message) => {
      message
        .to('[email protected]')
        .from('[email protected]')
        .subject('welcome')
    })

error :

SyntaxError: Unexpected token M in JSON at position 0
at JSON.parse ()
at Request.basicAuth.headers.post.then (C:\Users\Mortina\Desktop\iptv-panel\node_modules@adonisjs\mail\src\Mail\Drivers\Mailgun.js:161:32)
at
at process._tickCallback (internal/process/next_tick.js:188:7)

update:
worked for me.

from mail.

LeCoupa avatar LeCoupa commented on May 18, 2024

Here is a quick tutorial to set up Adonis with Mailgun.

https://madsobel.com/blog/setting-up-mailgun-with-adonis.js/

from mail.

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.