adonisjs / mail

AdonisJS Email Provider
MIT License
106 stars 34 forks source link

ses driver issue in @adonisjs/mail:4.1.1 #52

Closed zulfi007 closed 4 years ago

zulfi007 commented 4 years ago

I found it difficult to understand how to use SES with this package. I am getting "MODULE_NOT_FOUND" error

Package version

"@adonisjs/mail": "^4.1.1",

Node.js and npm version

Node 14.5.0

Sample Code (to reproduce the issue)

Mail.send(message => {
          message
            .to(data.email)
            .from('esmartpk@gmail.com')
            .htmlView('registration_confirmation_email.edge', {
              token: user.confirmation_token,
              userName: user.name,
              appURL: Env.get('APP_URL', 'localhost:3333'),
            })
        })

I am using following Config file

   ses: {
      driver: 'ses',
      apiVersion: '2010-12-01',
      key: Env.get('SES_ACCESS_KEY') as string,
      secret: Env.get('SES_ACCESS_SECRET') as string,
      region: Env.get('SES_REGION') as string,
      sslEnabled: true,
      sendingRate: 10,
      maxConnections: 5,
    },
thetutlage commented 4 years ago

Closing, since badly formatted and provides no information.

zulfi007 commented 4 years ago

Formatted. Please reopen