alexgaribay / sendgrid_elixir

Create and send composable emails with Elixir and SendGrid.
MIT License
86 stars 44 forks source link

add_to documentation #5

Closed beerlington closed 8 years ago

beerlington commented 8 years ago

I noticed that the put_to function has been renamed add_to, but the docs and readme still refer to putto. I was going to open a PR to update the docs, but was curious what the reasoning was for the change. What is the significance of `addvsput_`?

alexgaribay commented 8 years ago

My mistake on the docs.

The reasoning for changing it from put_to/2 to add_to/2 and add_to/3 is because SendGrid's latest API for sending transactional mail made it much easier to deal with multiple recipients. I wanted to make that feature available for people to use. Since the TO field can now have a list of recipients, I change the function to add since all other places in SendGrid.Email that modify lists also use the word add. Similarly, all fields that are a single item use the word put for manipulation.

If you create a PR for the doc updates I missed, I'll gladly merge.

beerlington commented 8 years ago

Will do. Is it possible to assign this issue to me?

alexgaribay commented 8 years ago

Unfortunately, I'm unable to assign an issue to you.

overallduka commented 8 years ago

That is true, starting to use today and all docs saying about put_to and not add_to. Has none references to this.

alexgaribay commented 8 years ago

Latest version correctly uses add_to in the docs.