Compare commits
2 Commits
e4130c29ba
...
8e3f793e4e
Author | SHA1 | Date |
---|---|---|
Tudor Stanciu | 8e3f793e4e | |
Tudor Stanciu | 17ec8b95d4 |
|
@ -1,7 +1,7 @@
|
||||||
<Project>
|
<Project>
|
||||||
<Import Project="dependencies.props" />
|
<Import Project="dependencies.props" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>1.0.0</Version>
|
<Version>1.0.1</Version>
|
||||||
<Authors>Tudor Stanciu</Authors>
|
<Authors>Tudor Stanciu</Authors>
|
||||||
<Company>STA</Company>
|
<Company>STA</Company>
|
||||||
<PackageTags>Correo</PackageTags>
|
<PackageTags>Correo</PackageTags>
|
||||||
|
|
|
@ -11,9 +11,9 @@ namespace Correo.Abstractions.Extensions
|
||||||
public static string Log(this EmailMessage message)
|
public static string Log(this EmailMessage message)
|
||||||
{
|
{
|
||||||
var msg = $"Email sent: Subject: {message.Subject}; From: {message.From.Address}; To: {message.To.Log()};";
|
var msg = $"Email sent: Subject: {message.Subject}; From: {message.From.Address}; To: {message.To.Log()};";
|
||||||
if (message.Cc != null)
|
if (message.Cc != null && message.Cc.Any())
|
||||||
msg += $" Cc: {message.Cc.Log()};";
|
msg += $" Cc: {message.Cc.Log()};";
|
||||||
if (message.Bcc != null)
|
if (message.Bcc != null && message.Bcc.Any())
|
||||||
msg += $" Bcc: {message.Bcc.Log()};";
|
msg += $" Bcc: {message.Bcc.Log()};";
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue