0.5.43 • Published 12 days ago

@anchan828/nest-sendgrid v0.5.43

Weekly downloads
3,702
License
MIT
Repository
github
Last release
12 days ago

@anchan828/nest-sendgrid

Description

The @sendgrid/mail module for Nest.

This module is very simple.

Installation

$ npm i --save @anchan828/nest-sendgrid

Quick Start

import { SendGridModule } from "@anchan828/nest-sendgrid";
import { Module } from "@nestjs/common";
import { AppController } from "./app.controller";
import { AppService } from "./app.service";

@Module({
  imports: [
    SendGridModule.forRoot({
      apikey: process.env.SENDGRID_API_KEY,
    }),
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
import { SendGridService } from "@anchan828/nest-sendgrid";
import { Controller, Post } from "@nestjs/common";

@Controller()
export class AppController {
  constructor(private readonly sendGrid: SendGridService) {}

  @Post()
  async root(): Promise<void> {
    await this.sendGrid.send({
      to: "test@example.com",
      from: "test@example.com",
      subject: "Sending with SendGrid is Fun",
      text: "and easy to do anywhere, even with Node.js",
      html: "<strong>and easy to do anywhere, even with Node.js</strong>",
    });
  }
}

License

MIT.

0.5.43

12 days ago

0.5.41

26 days ago

0.5.42

19 days ago

0.5.40

1 month ago

0.5.38

2 months ago

0.5.39

1 month ago

0.5.36

2 months ago

0.5.37

2 months ago

0.5.34

2 months ago

0.5.35

2 months ago

0.5.32

3 months ago

0.5.33

3 months ago

0.5.30

3 months ago

0.5.31

3 months ago

0.5.29

4 months ago

0.5.27

5 months ago

0.5.28

4 months ago

0.5.25

6 months ago

0.5.26

5 months ago

0.5.24

6 months ago

0.5.21

6 months ago

0.5.22

6 months ago

0.5.20

7 months ago

0.5.23

6 months ago

0.5.19

7 months ago

0.5.18

7 months ago

0.5.16

8 months ago

0.5.17

7 months ago

0.5.15

8 months ago

0.5.14

8 months ago

0.5.13

8 months ago

0.5.12

9 months ago

0.5.11

9 months ago

0.5.10

9 months ago

0.5.9

9 months ago

0.5.8

9 months ago

0.5.7

10 months ago

0.5.6

10 months ago

0.5.5

10 months ago

0.5.4

10 months ago

0.5.3

10 months ago

0.5.2

10 months ago

0.5.1

10 months ago

0.5.0

11 months ago

0.4.27

11 months ago

0.4.26

11 months ago

0.4.25

11 months ago

0.4.24

12 months ago

0.4.23

12 months ago

0.4.22

12 months ago

0.4.20

1 year ago

0.4.21

1 year ago

0.4.19

1 year ago

0.4.17

1 year ago

0.4.18

1 year ago

0.4.16

1 year ago

0.4.15

1 year ago

0.4.14

1 year ago

0.4.13

1 year ago

0.4.12

1 year ago

0.4.11

1 year ago

0.4.10

1 year ago

0.4.9

1 year ago

0.4.8

1 year ago

0.4.7

1 year ago

0.4.6

1 year ago

0.4.5

1 year ago

0.4.4

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.36

1 year ago

0.3.35

1 year ago

0.3.34

1 year ago

0.3.33

1 year ago

0.3.32

2 years ago

0.3.31

2 years ago

0.3.30

2 years ago

0.3.29

2 years ago

0.3.28

2 years ago

0.3.27

2 years ago

0.3.26

2 years ago

0.3.25

2 years ago

0.3.24

2 years ago

0.3.23

2 years ago

0.3.22

2 years ago

0.3.21

2 years ago

0.3.20

2 years ago

0.3.19

2 years ago

0.3.18

2 years ago

0.3.17

2 years ago

0.3.16

2 years ago

0.3.15

2 years ago

0.3.14

2 years ago

0.3.13

2 years ago

0.3.12

2 years ago

0.3.11

2 years ago

0.3.10

2 years ago

0.3.9

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.40

2 years ago

0.1.39

2 years ago

0.1.38

2 years ago

0.1.37

2 years ago

0.1.36

2 years ago

0.1.35

2 years ago

0.1.34

2 years ago

0.1.33

2 years ago

0.1.32

2 years ago

0.1.31

2 years ago

0.1.30

2 years ago

0.1.29

2 years ago

0.1.28

2 years ago

0.1.27

2 years ago

0.1.26

2 years ago

0.1.25

2 years ago

0.1.24

2 years ago

0.1.23

3 years ago

0.1.22

3 years ago

0.1.21

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago