function send_email(destAdress, ccAddress, subject, body) {
  console.log("send_email")
  this.destAdress = destAdress
  this.ccAddress = ccAddress
  this.subject = 'Your rented cell phone is about to expire'
  if (subject) {
    this.subject = subject
  }
  this.body = "Hello,You phone must to return"
  if (body) {
    this.body = body
  }
  this.args =
    {
      data: {
        destAdress: this.destAdress,
        ccAddress: this.ccAddress,
        subject: this.subject,
        body: this.body
      },
      headers: { "Content-Type": "application/json" }
    };
}
// set content-type header and data as json in args parameter
set content-type header and data as json in args parameter
set content - type header and data as json in args parameter
function send_email(destAdress, ccAddress, subject, body) {
  console.log("send_email")
  this.destAdress = destAdress
  this.ccAddress = ccAddress
  this.subject = 'Your rented cell phone is about to expire'
  if (subject) {
    this.subject = subject
  }
  this.body = "Hello,You phone must to return"
  if (body) {
    this.body = body
  }
  this.args =
    {
      data: {
        destAdress: this.destAdress,
        ccAddress: this.ccAddress,
        subject: this.subject,
        body: this.body
      },
      headers: { "Content-Type": "application/json" }
    };
}
function send_email ( destAdress , ccAddress , subject , body ) { console . log ( "send_email" ) this . destAdress = destAdress this . ccAddress = ccAddress this . subject = 'Your rented cell phone is about to expire' if ( subject ) { this . subject = subject } this . body = "Hello,You phone must to return" if ( body ) { this . body = body } this . args = { data : { destAdress : this . destAdress , ccAddress : this . ccAddress , subject : this . subject , body : this . body } , headers : { "Content-Type" : "application/json" } } ; }
set content-type header and data as json in args parameter
set content - type header and data as json in args parameter