1.3.2 • Published 2 years ago

ciql-mailer v1.3.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

yarn add ciql-mailer

npm install ciql-mailer

const Mailer = require('ciql-mailer')
const agent = new Mailer()

agent.connect()
const Mailer = require('ciql-mailer')
const agent = new Mailer()

agent.connect({
  host: "xyz.test.com",
  port: 465,
  secure: true,
  auth: {
      user: "test@xyz.com",
      pass: "**********",
  },
})
const Mailer = require('ciql-mailer')
const agent = new Mailer()

agent.connect()

agent.setoptions({ 
  subject: "Information about you", 
  from: "me@ciql.org", 
  to: "you@xyz.com",
  priority: "high", 
})
const Mailer = require('ciql-mailer')
const agent = new Mailer()

agent.connect()

agent.setoptions({ 
  subject: "Information about you", 
  from: "me@ciql.org", 
  to: "you@xyz.com",
  priority: "high", 
})

agent.sendBlank("HI <b>You</b>, I'm very happy to see you today.")
.then(() => {
  //Do something
})
.catch((err) => {
  //Do something
})
const Mailer = require('ciql-mailer')
const agent = new Mailer()

agent.connect()

agent.setoptions({ 
  subject: "Information about you", 
  from: "me@ciql.org", 
  to: "you@xyz.com",
  priority: "high", 
})

agent.sendCode("Verification code", "Use this code to validate your account", 2536)
.then((code) => {
  //Do something
})
.catch((err) => {
  //Do something
})
const Mailer = require('ciql-mailer')
const agent = new Mailer()

agent.connect()

agent.setoptions({ 
  subject: "Information about you", 
  from: "me@ciql.org", 
  to: "you@xyz.com",
  priority: "high", 
})

agent.sendApproval(
  "Production Approval", 
  "Do you accept condition to deploy now ?", 
  "https://api.approvals.com/no",  
  "https://api.approvals.com/yes"
  )
.then(() => {
  //Do something
})
.catch((err) => {
  //Do something
})
const Mailer = require('ciql-mailer')
const agent = new Mailer()

agent.connect()

agent.setoptions({ 
  subject: "Information about you", 
  from: "me@ciql.org", 
  to: "you@xyz.com",
  priority: "high", 
})

agent.sendAds(
  "https://images.com/eiug254ef", 
  "New product", 
  "For developers and managers, it is very important", 
  "https://products.com/seemore")
.then(() => {
  //Do something
})
.catch((err) => {
  //Do something
})
const Mailer = require('ciql-mailer')
const agent = new Mailer()

agent.connect()

agent.setoptions({ 
  subject: "Information about you", 
  from: "me@ciql.org", 
  to: "you@xyz.com",
  priority: "high", 
})

agent.sendArticle(
  "New product", 
  "For developers and managers, it is very important", 
  "https://images.com/eiug254ef", 
  [
      {
      title : "",
      img : "",
      text:""
    },
    {
      title : "",
      text:""
    }
  ]
  )
.then(() => {
  //Do something
})
.catch((err) => {
  //Do something
})

Copyright (c) 2021 dykoffi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.1.0

2 years ago