code-for-nashville / glean-tennessee-web

This project was created during Nashville's Civic Day of Hacking to allow farmers and other food providers to notify the Society of St. Andrew of food donations available for harvest and pick up.
https://glean-tennessee.firebaseapp.com/
8 stars 10 forks source link

send email function #53

Closed coreyar closed 5 years ago

coreyar commented 5 years ago

Adds firebase function for sending email with sendgrid.

Closes issue #11

Rian501 commented 5 years ago

Which address is the email sending to?

coreyar commented 5 years ago

Currently, it goes to me. https://github.com/code-for-nashville/glean-tennessee-web/blob/f86464fb055b7ba409b6bacdd541323975ec7d85/functions/index.js#L14

Rian501 commented 5 years ago

The fields for "name" and "phone number" seem to not be making it to the email.

Also, what is the address box for? I'm thinking the reason they are signed in is so they don't have to re-enter basic information that does not change, right? (So it's connected to their profile rather than something they have to enter).

coreyar commented 5 years ago

Yes, update pulling information from firebase where possible and removed unnecessary fields. New form fields will be add / updated with #13 and #45.