Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.12 KB

File metadata and controls

25 lines (18 loc) · 1.12 KB

notification

styled with prettier Greenkeeper badge Travis Coveralls

Include mail 📩 and sms 📲 notifications. The notifiaction is a module used to handling Email ans SMS nottifications for pardjs project. it includes.

Usage

CONFIGURATIONS:

  • aliAppId: The appId for ali services.
  • aliSecret: The secret for ali services.
  • senderName: The name of the sender
  • senderEmail: the sernder email address
  • emailTitle: [Optional, '邮件通知 Email Notification']The default email title
  • aliMailTimeout: [Optional, 3000]the timeout value for aliMail service(ms)
import Notification from '@pardjs/notification';

const notificationSender = new Notification('#CONFIGURATIONS#');