csi-lk / aws-ses-local

Local Amazon Simple Email Service Server
MIT License
23 stars 10 forks source link

Wrong response for sendRawEmail #13

Open iMinnesotan opened 6 years ago

iMinnesotan commented 6 years ago

I was getting an empty response back from SES when invoking sendRawEmail until I cloned success.xml as success-raw.xml and changed the file to:

 <?xml version="1.0" encoding="UTF-8"?>
 <SendRawEmailResponse xmlns="http://ses.amazonaws.com/doc/2010-12-01/">
    <SendRawEmailResult>
        <MessageId>{{message}}</MessageId>
    </SendRawEmailResult>
 </SendRawEmailResponse>

and renamed the template in send-raw-email.js.

csi-lk commented 6 years ago

Does not yet support sendRawEmail Oh wait yes it does...

Am going to look at re-writing this soon and will include proper support, haven't looked at this in a while

iMinnesotan commented 6 years ago

Thank you. With the fix it works like a champ. The sendEmail mock has made this a very useful module for us but we had to switch to sendRawEmail to support attachments.