@pardjs/notification
v0.2.2
Published
The description for the module
Downloads
6
Readme
notification
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#');