Skip to content

Space added in substitution value  #77

@dennyriadi

Description

@dennyriadi

Issue

So I am following the example code in the repo and attempt to send email to multiple recipients using multiple substitution values like so:

header.setTos(['you@youremail.com', 'other@otheremail.com', ....);
header.addSubstitution('{{token}}', ['...', '...', '1fccc78932657d7d024521eee12a90', '...']);

The emails are being delivered successfully but the tokens are sometimes set randomly with space around it (e.g. "1fccc78932657d7d024521 eee12a90")

Checked the actual payload being sent to the server and I can verify that the token values do not contain spaces.

Technical details:

  • smtpapi-nodejs Version: 1.3.1
  • Node.js Version: 6.x.x

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions