Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

add email service with nodemailer - #146

Merged
vaibhavsingh97 merged 5 commits into
freeCodeCamp:masterfrom
eolculnamo2:feature/abstract-mailer
Dec 1, 2019
Merged

vaibhavsingh97 merged 5 commits into
freeCodeCamp:masterfrom
eolculnamo2:feature/abstract-mailer

Conversation

@eolculnamo2

@eolculnamo2 eolculnamo2 commented Oct 26, 2019 •

Copy link
Copy Markdown
Contributor
  • I have read Chapter's contributing guidelines.
  • My pull request has a descriptive title (not a vague title like Update README.md).
  • My pull request targets the master branch of Chapter.

Creates Email Service using nodemailer that will be used later for our email tickets.

Dependencies Added:

  1. nodemailer
  2. chai
  3. sinon
  4. sinon-chai.

Comment thread package.json Resolved
Comment thread server/services/MailerService.ts Resolved
@timmyichen timmyichen mentioned this pull request Oct 28, 2019
5 tasks done
@vaibhavsingh97
vaibhavsingh97 self-requested a review October 28, 2019 13:43
Comment thread server/services/MailerService.ts Resolved

@vaibhavsingh97 vaibhavsingh97 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, just a minor changes

Note to self: Have to raise another issue, as according to @QuincyLarson comment, we have to support popular options like Amazon SES, SendGrid, and Mandrill.

Comment thread README.md
```

Setup Environment Variables:
Copy and paste env.sample into your .env file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I honestly don't know much at all about Docker -- Do you mean that we should use environment variables in Docker Compose for default variables that can be overwritten by an .env file?

@allella

allella commented Nov 14, 2019 •

Copy link
Copy Markdown
Contributor

@vaibhavsingh97 @eolculnamo2 would we need to enable all the transports, by default, to support the common options?

Looks like SMTP is the default and then SES and sendmail (local relay) need to be enabled.

So, would we be installing everything even if people only will use one transport?

@jacobbogers

Copy link
Copy Markdown

Hi, I can look into this

@jacobbogers

jacobbogers commented Nov 16, 2019 •

Copy link
Copy Markdown

Hi @ALL, I need to dive into node-mailer ( I am only familiar with mailgun-js ), for me to make any sensible decision about design.. I will take this opportunity to learn node-mailer very well,

@vaibhavsingh97

Copy link
Copy Markdown
Member

would we need to enable all the transports, by default, to support the common options?

Nope, by default only SMTP will be enabled, we will just provide options to enable all other providers.

Would we be installing everything even if people only will use one transport?

Nope, We will give options to users, if they want to use other services.

@allella

allella commented Nov 17, 2019

Copy link
Copy Markdown
Contributor

Nope, by default only SMTP will be enabled, we will just provide options to enable all other providers

How would installing new mailer packages work for the app? Would the administrator need to run a command on the server, or is there a way to install new packages directly from the application admin UI and/or configuration files?

@jacobbogers

jacobbogers commented Nov 17, 2019 •

Copy link
Copy Markdown

@allella nodemailer uses plugins for non SMTP transports (has some build in), to avoid manually installing them, they need to already exist, its best to view these diff plugins as a "preset" (needs its own config page to fill in params) to be selected, I am looking into that as well to put in MVP, it seems to be very trivial to add in the various plugins for node-mailer, still investigating...

@vaibhavsingh97

Copy link
Copy Markdown
Member

@eolculnamo2 Can you please resolve conflicts so that we can merge 😄

@eolculnamo2

Copy link
Copy Markdown
Contributor Author

Will do :)

@vaibhavsingh97
vaibhavsingh97 self-requested a review November 18, 2019 17:19
@vaibhavsingh97

Copy link
Copy Markdown
Member

Also, Can you please resolve @ScottBrenner comment, also as you had added mocha and chai for test frameworks, so can you please add the same in the readme here and here.

@vaibhavsingh97 vaibhavsingh97 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@allella

allella commented Feb 23, 2020

Copy link
Copy Markdown
Contributor

We had more current conversation in today's meeting on using nodemailer and SMTP with free / cheap tiers of 3rd party transactional mailing services.

@allella allella added the Email label Aug 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants