dwyl / sendemail

💌 Simplifies reliably sending emails from your node.js apps using AWS Simple Email Service (SES)
181 stars 26 forks source link

Adds functionality to send emails to To, CC & BCC fields in bulk #65

Closed amitmawkin closed 7 years ago

amitmawkin commented 7 years ago
export TEMPLATE_DIRECTORY=examples/templates
export SENDER_EMAIL_ADDRESS=who@anyone.com
export AWS_PROFILE=<if you have any profile - this fields is optional>
export AWS_REGION=us-east-1
export HTTP_PROXY=http://localhost:8099
export HTTPS_PROXY=https://localhost:8099
export https_proxy=$HTTP_PROXY
export http_proxy=$HTTP_PROXY
export NO_PROXY=169.254.169.254
amitmawkin commented 7 years ago

@nelsonic please review and Merge , hopefully got it correct this time.

nelsonic commented 7 years ago

@amitmawkin I don't understand why test/code coverage needs to go down... 🤔 any chance you can add a test that exercise the 2 lines being missed?

amitmawkin commented 7 years ago

I did, if you go to codecov now, it should show 100%.. BTW I need to add some more code, as I just came to know that AWS only allows 50 email addresses in one email irrespective of the fields. So i will push the new code tonight

codecov-io commented 7 years ago

Codecov Report

Merging #65 into master will not change coverage. The diff coverage is 100%.

@@          Coverage Diff          @@
##           master    #65   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          29     42   +13     
=====================================
+ Hits           29     42   +13
Impacted Files Coverage Δ
lib/index.js 100% <100%> (ø) :white_check_mark:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 4e43467...b2e3617. Read the comment docs.

amitmawkin commented 7 years ago

Sure thing @nelsonic will try to get these in, reason for new method was to avoid breaking the code for backwards compatibility, as this was the first time putting the code in . You were right for the indent, i use vscode and the format plugin was using 4 spaces instead of two. i have fixed that.

amitmawkin commented 7 years ago

I will also update the Readme and put some examples :)

amitmawkin commented 7 years ago

proxy was used if you are running in a corporate environment for local testing , I can take it out not a big thing , i will have to test it out if it works without it when developing locally on my mac

roryc89 commented 7 years ago

Hi @amitmawkin and @nelsonic. The changes in this PR are useful for my project so I'm gonna make the suggested review changes for this PR. Hope this is ok!

nelsonic commented 7 years ago

@roryc89 great plan! thanks! ❤️

amitmawkin commented 7 years ago

Sure .. i can review it also. I was travelling so could not finish it after @nelsonic review. Let me know if you can wait a day or two or go ahead if it is urge mnt

roryc89 commented 7 years ago

Thanks @amitmawkin for the work - it's a big help!

I'm afraid the deadline for our project is somewhat pressing.

I've already resolved the conflicts and made some of the suggested review changes so I could push this and you could check that the changes I made are acceptable for you?

roryc89 commented 7 years ago

@nelsonic and @amitmawkin I've updated the code with the changes suggested in the review. Please let me if there's anything you'd prefer done differently! :)

nelsonic commented 7 years ago

@roryc89 / @shouston3 what version are we releasing this as? 3.2 or 4.0?

roryc89 commented 7 years ago

@nelsonic I thought all my changes were backwards compatible so I don't know any reason to bump to 4

nelsonic commented 7 years ago

@roryc89 yeah, looks backward compatible to me too. so thinking 3.2.0 ?

nelsonic commented 7 years ago

sendemail@3.2.0 on NPM cc: @amitmawkin 🚀