Socket
Socket
Sign inDemoInstall

ngx-sendgrid

Package Overview
Dependencies
5
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ngx-sendgrid


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

NgSendgrid

This library allows you to quickly and easily use the SendGrid Web API v3 via Angular 2,4,6,7.

This library represents the beginning of a new path for SendGrid. We want this library to be community driven and SendGrid led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create issues and pull requests or simply upvote or comment on existing issues or pull requests.

Please browse the rest of this README for further detail.

We appreciate your continued support, thank you!


GitHub licenseBuild Status Maintenancesaythanks

npm i ngx-sendgrid

yarn install ngx-sendgrid

Usage

Import Main Module


import { SendgridModule,  SendgridService  } 
from 'ngx-sendgrid';




@NgModule({
 declarations: [
   //....
   ],
  imports: [
   //...
   SendgridModule.forRoot({token:'xxxxxxxxxxx'})
  ],
  })

Add to service


import { Injectable } from '@angular/core';
import { SendgridService } from 'ngx-sendgrid';

@Injectable({
providedIn: 'root'
})
export class AppService {

constructor(private service: SendgridService) { }

sendToSingleUser(){
this.service.BasicEmailToSingleUser( to, from, subject, content).subscribe(result=>{
console.log(result)
})

}

}




Keywords

FAQs

Last updated on 04 Nov 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc