Selaa lähdekoodia

SENDER NAME

master
Krisna Yana Javista 2 vuotta sitten
vanhempi
commit
520a250327
2 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  1. +1
    -2
      .env.example
  2. +1
    -1
      index.mjs

+ 1
- 2
.env.example Näytä tiedosto

@@ -1,6 +1,5 @@
AMQP_SERVER=amqp://localhost
QUEUE_NAME=
SENDER_EMAIL=
TRANS_NAME=
TRANS_PASS=
SENDER_NAME=
SENDING_BLUE_API_KEY=

+ 1
- 1
index.mjs Näytä tiedosto

@@ -49,7 +49,7 @@ amqp.connect(process.env.AMQP_SERVER).then(async conn=> {
function sendReceipt(recepientEmail, receipt) {
var date = new Date()
sendSmtpEmail = {
sender: {email: senderEmail, name: 'ReceiptSenderAutomation'},
sender: {email: senderEmail, name: process.env.SENDER_NAME},
to: [{email: recepientEmail, name: 'Customer'}],
subject: "test",
textContent: "testing",


Ladataan…
Peruuta
Tallenna