Template mail sender
Template mail sender is a web application which based on javascript/nodejs. It’s ready for GoogleCloud platform. Save attachments on google cloud storage. Use database as Google cloud datastore and also use redis for session & queue management.
Rendering user templates by given parameters, then send rendered template to given mail address. When sending process complate also it can be save 1 copy to imap directory.
attach
attach file on google cloud storagelink
returns global url for given file on google cloud storagedate
returns date string by given format (by using moment/moment)embed
embed storage file into templaterender
render storage file then embed it into templateuser_variable
returns custom user parameterInstall node packages;
npm install
Run instance by set env values
PROJECT_ID=GOOGLE_PROJECT_ID BUCKET=GOOGLE_STORAGE_BUCKET REDIS_PORT=REDIS_PORT npm start
PROJECT_ID
required Google Cloud Project IDBUCKET
required Google Cloud Storage BucketREDIS_PORT
optional Redis port default 6379
REDIS_HOST
optional Redis host default localhost
GOOGLE_APPLICATION_CREDENTIALS
optional Google Cloud app auth json file locationLOG_LEVEL
optional Log level default info
(uses Google Cloud Logging in production mode)NODE_ENV
optional Production flag default null (use production
for production)PORT
optional Server port default 3000
JWT_SECRET
optional jwt secret for validation api callnavigate to http://localhost:3000