node.js - Send Email with attachment using aws-sdk(Amazon SES) using nodejs -


Hello, I'm trying to send an email with an attachment

 & gt;" + err, err.stack); // An error occurred console.log ("data & Gt; & gt; & gt; "+ JSON.stringify (data)); // successful response});  

But I'm getting error

UnexpectedParameter: found in unexpected key params.RawMessage * UnexpectedParameter 'From:' In the unlikely key 'to' params.RawMessage * UnexpectedParameter found: unexpected key 'date' params.RawMessage * found UnexpectedParameter: unexpected key 'theme' params.RawMessage * found UnexpectedParameter: unexpected key found in the accepted 'language' params.RawMessage * UnexpectedParameter: unexpected key 'content-language' Found in params.RawMessage * In UnexpectedParameter: Unexpected Goods Minister 'Content-Type' params.RawMessage * found UnexpectedParameter: found in unexpected key Sbdsmuchcy 'params.RawMessage * found UnexpectedParameter: unexpected key content-transfer-encoding' params.RawMessage * Unexpected parameters: unexpected key Maim- Found in version 'paragraph. RMMessage

I know that I'm not using the exact nature of the parameters, but I have not found anywhere in the correct format, please help me .... Thanks in advance ...

, only one data in field RawMessage is property and nothing else The headers and body (or bodies), formatted all right (escaping, - including encoding) and delimited (appropriate number of new lines) data full raw email message field.

You may be looking for sendEmail , which will give you the header as the key-value as 'from', 'to', and 'subject' field. Allows to set pairs.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -