csi-lk / aws-ses-local

Local Amazon Simple Email Service Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Concat of current path & created email path bug

giraudvalentin opened this issue · comments

This line return to me a path like that, i need to replace ${process.cwd()} by empty string

My workspace is /Users/username/workspace/cleo/, and i launch the server here

Received Value : /Users/username/workspace/cleo//Users/vgiraud/workspace/cleo/var/mail/test/2018-04-11/13.24.29.06/body.txt

Expected Value : /Users/vgiraud/workspace/cleo/var/mail/test/2018-04-11/13.24.29.06/body.txt

I think we dont need the ${process.cwd()} at

successTemplate.replace('{{message}}', `${process.cwd()}/${path.join(fullDir)}/body.html`)

Regards,

Hmm I hadn't tested it on Windows, and have been wanting to re-do a lot of this repo for a while.

Am pretty busy so I'll have a look over the net week