Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/mail #27

Merged
merged 7 commits into from
Mar 1, 2021
Merged

Conversation

susithrupasinghe
Copy link
Contributor

Purpose

Sending Mails to user/ set of users #6

Goals

  1. Sending emails
  2. Checking availability of SMTP

Approach

Checklist

  • This PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.
  • I have performed a self-review of my own code
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

@sithumonline sithumonline linked an issue Feb 28, 2021 that may be closed by this pull request
1 task
Copy link
Member

@sithumonline sithumonline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is some code formatting issues. Remove unnecessary line gaps and try Prettier

src/api/mails/mail.constants.js Outdated Show resolved Hide resolved
src/api/mails/mail.controller.js Outdated Show resolved Hide resolved
src/api/routes.js Outdated Show resolved Hide resolved
Comment on lines +1 to +10
const CREDENTIALS = {
HOST: "smtp.mailtrap.io",
PORT: "2525",
USER: "c8cca3941aea9c",
PASSWORD: "18763bafd470a9",
};

export default {
CREDENTIALS,
};
Copy link
Member

@chamodshehanka chamodshehanka Mar 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't push secrets to a public repository. Gitignore it. when we're deploying the app we can put this as a config file. But still wondering how we configure this for github actions 🤨. Need to find a way

Copy link
Member

@chamodshehanka chamodshehanka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR is overall good. But need to find a way for config file.

@ebonynon @susithrupasinghe Let's discuss about that in discussion

@chamodshehanka
Copy link
Member

Gonna merge this for now. Let's discuss the issue in here #29

@chamodshehanka chamodshehanka merged commit 29dbe0e into sliit-foss:master Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mail Endpoint
3 participants