Updated public and fixed bug in mailer.js