Skip to content

Commit

Permalink
+ (Communication) Fixed an issue with the Send Grid HTTP integration …
Browse files Browse the repository at this point in the history
…that required the Save Communication option to be checked for emails to actually be sent via the Send Grid API. (Fixes SparkDevNetwork#4582)
  • Loading branch information
matthewbronkema committed Feb 9, 2021
1 parent 1a14587 commit 1c1cdb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Rock.SendGrid/Communications/Transport/SendGridHttp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ private SendGridMessage GetSendGridMessageFromRockEmailMessage( RockEmailMessage
sendGridMessage.HtmlContent = rockEmailMessage.Message;

// Communication record for tracking opens & clicks
sendGridMessage.CustomArgs = rockEmailMessage.MessageMetaData;
if ( rockEmailMessage.MessageMetaData != null && rockEmailMessage.MessageMetaData.Count > 0 )
{
sendGridMessage.CustomArgs = rockEmailMessage.MessageMetaData;
}

if ( CanTrackOpens )
{
Expand Down

0 comments on commit 1c1cdb0

Please sign in to comment.