SENDER NAME

master
Krisna Yana Javista 3 years ago
parent 57761d2754
commit 520a250327

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

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

Loading…
Cancel
Save