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

From in object issue #10

Closed
sanusi87 opened this issue Aug 17, 2016 · 2 comments
Closed

From in object issue #10

sanusi87 opened this issue Aug 17, 2016 · 2 comments

Comments

@sanusi87
Copy link

I was able to send email using this fields in Node.js:

{
    to: 'xxx',
    from: 'xxx',
    subject: 'xxx',
    html: 'xxx'
}

but then i change the from field into and object:

{
    to: 'xxx',
    from: {
        name: 'xxx',
        address:'xxx'
    },
    subject: 'xxx',
    html: 'xxx'
}

i got his error:

{
    [SparkPostError: Unprocessable Entity]
    name: 'SparkPostError',
    errors:[
        {
            message: 'required field is missing',
            description: 'content.from.email is a required field',
            code: '1400' 
        } 
    ],
    statusCode: 422 
}

is from in object type not yet supported?

@simison
Copy link
Contributor

simison commented Aug 17, 2016

Object model makes it so much easier to handle security, that it should definitely be added.

@aydrian
Copy link
Contributor

aydrian commented Nov 10, 2016

Closed by #12

@aydrian aydrian closed this as completed Nov 10, 2016
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

3 participants