Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send the xHeaders in NodeJS using the DynectEmailNode #5

Open
michaelkramer opened this issue Aug 15, 2017 · 0 comments
Open

Comments

@michaelkramer
Copy link

I'm having so issues. Nothing I'm doing is allowing the xheaders to carry over to the email.

const DynectEmailNode = require('dynectemail').DynectEmailNode;
let xHeader: string = 'X-agentid=' + agentid + '&X-formname=' + formName;
var requestSend = dynectemail.request('send', {
			from: senderEmail,
			to: [toAddress],
			subject: subject,
			replyto: fromAddress,
			bodytext: plainbase64.toString('base64'),
			bodyhtml: htmlbase64.toString('base64'),
			xheaders: xHeader,
			
			handlers: {
				success: function (data) {
					if (data.response.status != '200') {
						console.log('Request Failed: ' + data.response.status + ' ' + data.response.message);
					} else {
						console.log('Request Success: ' + data.response.status, data.response.data);
					}
				},
				error: function (error) {
					console.log("Error: " + error.message);
				}
			}
		});

In the email it's blank.

X-DynectEmail-Msg-Hash: s8mq+FF8Y8JUhNHAt7TSSFEyCwI54ZfJmD+MafMIlSPTEryAUuv3buKgqneCZ/1ezWhCWGkOFXdDao3bupLVxDIw9jtjbLRiQrRRKjI9I3MZeFS9jytbnQ==
X-DynEmail-Meta: Ql6qu5MlDftUoc80G7MntLJdWNRDe+osVEZgkFJzeTVnLezaQrGLH36zleT E0zO1i8P9n1R9I2JikazQC1AMEwwxGOgO6RUbXdhI6O7kr730YRcz8J7d7o7bz8WrGZL32EBkeY HDdiEfqel24AR2JdGtHdvjA0At3VZZTW+FEVTyTLjYXzYYlll68nedv6QrwwB/ZrsGsKqgqF1lN oaoOwCH9seQU/lBbwm1zXU5ofU=
X-DynectEmail-Msg-Key: 20170802145503.00000006c7b3@mail6-34-ussnn1
X-DynectEmail-X-Headers: 
X-Feedback-ID: R29sZFRyYW4xM1ZNVEFz:438894:522282:dyn06

As you can see the x-dynectemail-x-headers is blank.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant