Skip to content

Commit

Permalink
Merge pull request #457 from JefStat/patch-1
Browse files Browse the repository at this point in the history
Update SendGridMessage.cs
  • Loading branch information
thinkingserious authored May 16, 2017
2 parents ca2b532 + 979781c commit 8785065
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SendGrid/Helpers/Mail/SendGridMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ public void AddTo(EmailAddress email, int personalizationIndex = 0, Personalizat
{
if (personalization != null)
{
personalization.Tos = personalization.Tos ?? new List<EmailAddress>();
personalization.Tos.Add(email);
if (this.Personalizations == null)
{
Expand Down Expand Up @@ -273,6 +274,7 @@ public void AddCc(EmailAddress email, int personalizationIndex = 0, Personalizat
{
if (personalization != null)
{
personalization.Ccs = personalization.Ccs ?? new List<EmailAddress>();
personalization.Ccs.Add(email);
if (this.Personalizations == null)
{
Expand Down Expand Up @@ -391,6 +393,7 @@ public void AddBcc(EmailAddress email, int personalizationIndex = 0, Personaliza
{
if (personalization != null)
{
personalization.Bccs = personalization.Bccs ?? new List<EmailAddress>();
personalization.Bccs.Add(email);
if (this.Personalizations == null)
{
Expand Down

0 comments on commit 8785065

Please sign in to comment.