iGLOO-be / nodemailer-mail-tracking

Tracking mail opening and clicks on links
MIT License
14 stars 4 forks source link

onBlankImageView not working #6

Closed ahmerarain closed 1 year ago

ahmerarain commented 1 year ago

onLinkClick works but onBlankImageView not working please help

const mailTrackingOptions = { baseUrl: 'http://localhost:81/api/tracking/mail-track', jwtSecret: 'secret', getData: data => { / Default data: { recipient: "rcptto@mail.fake" } Add any data if you want / console.log("data", data) return { ...data, hello: 'world' }; }, onBlankImageView: data => { / When email is opened data is default data + your data / console.log("onBlankImageView", data)

},
onLinkClick: data => {
    console.log("onLinkClick", data)
    /*
      When click on link in mail
      data is default data + { link } + your data
    */
},

} app.use('/mail-track', mailTracking.expressApp(mailTrackingOptions));

ahmerarain commented 1 year ago

its resolved for image localhost not exptable