Skip to content

Commit 2b252d5

Browse files
Version Bump v9.0.12: Allow for empty strings to be passed in as text or html content in *All* of the MailHelpers
1 parent 55bea3e commit 2b252d5

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [9.0.12] - 2017-02-17
5+
## Update
6+
- Allow for empty strings to be passed in as text or html content in *All* of the MailHelpers
7+
48
## [9.0.11] - 2017-02-17
59
## Update
610
- Issue #399: Allow for empty strings to be passed in as text or html content in the MailHelper

nuspec/Sendgrid.9.0.10.nuspec renamed to nuspec/Sendgrid.9.0.12.nuspec

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
33
<metadata>
44
<id>Sendgrid</id>
5-
<version>9.0.10</version>
5+
<version>9.0.12</version>
66
<title>SendGrid</title>
77
<authors>Elmer Thomas,SendGrid DX Team</authors>
88
<licenseUrl>https://github.com/sendgrid/sendgrid-csharp/blob/master/MIT.LICENSE</licenseUrl>
@@ -11,8 +11,7 @@
1111
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1212
<description>C# client library and examples for using SendGrid API's to send mail and access Web API v3 endpoints with .NET Standard 1.3 and .NET Core support. Github repo located at : https://github.com/sendgrid/sendgrid-csharp</description>
1313
<summary>C# client library and examples for using SendGrid API's to send mail and access Web API v3 endpoints with .NET Standard 1.3 and .NET Core support.</summary>
14-
<releaseNotes>- Issue #395: Remove dependency for Microsoft.AspNetCore.Http.Abstractions in .NET 4
15-
- Thanks to [@Hinni](https://github.com/Hinni) for the heads up!</releaseNotes>
14+
<releaseNotes>- Allow for empty strings to be passed in as text or html content in *All* of the MailHelpers</releaseNotes>
1615
<copyright>SendGrid, Inc. 2017</copyright>
1716
<tags>SendGrid Email Mail Microsoft Azure Transactional .NET Core</tags>
1817
<dependencies>

src/SendGrid/Helpers/Mail/MailHelper.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ public static SendGridMessage CreateSingleEmailToMultipleRecipients(
6464
var msg = new SendGridMessage();
6565
msg.SetFrom(from);
6666
msg.SetGlobalSubject(subject);
67-
if (plainTextContent != null)
67+
if (plainTextContent != null && plainTextContent != string.Empty)
6868
{
6969
msg.AddContent(MimeType.Text, plainTextContent);
7070
}
7171

72-
if (htmlContent != null)
72+
if (htmlContent != null && htmlContent != string.Empty)
7373
{
7474
msg.AddContent(MimeType.Html, htmlContent);
7575
}
@@ -102,12 +102,12 @@ public static SendGridMessage CreateMultipleEmailsToMultipleRecipients(
102102
{
103103
var msg = new SendGridMessage();
104104
msg.SetFrom(from);
105-
if (plainTextContent != null)
105+
if (plainTextContent != null && plainTextContent != string.Empty)
106106
{
107107
msg.AddContent(MimeType.Text, plainTextContent);
108108
}
109109

110-
if (htmlContent != null)
110+
if (htmlContent != null && htmlContent != string.Empty)
111111
{
112112
msg.AddContent(MimeType.Html, htmlContent);
113113
}

src/SendGrid/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
// The following GUID is for the ID of the typelib if this project is exposed to COM
2323
[assembly: Guid("377c20e4-2297-488f-933b-fb635c56d8fc")]
2424

25-
[assembly: AssemblyInformationalVersion("9.0.11")]
25+
[assembly: AssemblyInformationalVersion("9.0.12")]

src/SendGrid/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@
4747
}
4848
}
4949
},
50-
"version": "9.0.11"
50+
"version": "9.0.12"
5151
}

0 commit comments

Comments
 (0)