pending emails - to & cc split by ',', ';', ' '
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<PublishUrl>C:\Users\SZLATEV\Desktop\</PublishUrl>
|
||||
<PublishUrl>C:\Temp\PendingEmails\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
@@ -22,7 +22,7 @@
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>1</ApplicationRevision>
|
||||
<ApplicationRevision>2</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
, [CC]
|
||||
, [Id]
|
||||
FROM [Messages]
|
||||
WHERE [OutDate] IS NULL
|
||||
WHERE [OutDate] IS NULL
|
||||
ORDER BY [InDate] DESC";
|
||||
|
||||
using (var reader = command.ExecuteReader())
|
||||
@@ -136,13 +136,13 @@
|
||||
email.Body = $"{reader.GetValue<String>(2)}";
|
||||
|
||||
$"{reader.GetValue<String>(3)}"
|
||||
.Split(new[] { ',', ' ' }, StringSplitOptions.RemoveEmptyEntries)
|
||||
.Split(new[] { ',', ';', ' ' }, StringSplitOptions.RemoveEmptyEntries)
|
||||
.Select(x => new MailAddress(x))
|
||||
.ToList()
|
||||
.ForEach(email.To.Add);
|
||||
|
||||
$"{reader.GetValue<String>(4)}"
|
||||
.Split(new[] { ',', ' ' }, StringSplitOptions.RemoveEmptyEntries)
|
||||
.Split(new[] { ',', ';', ' ' }, StringSplitOptions.RemoveEmptyEntries)
|
||||
.Select(x => new MailAddress(x))
|
||||
.ToList()
|
||||
.ForEach(email.CC.Add);
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
65d75c3322f8a137c69963cfdc0cb6f1ffacf62a
|
||||
338bdd8d71c148c9df0972f903098eb23eacf0c9
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
namespace Common.UI.WPF.ViewModels
|
||||
{
|
||||
using Common.UI.WPF.Infrastructure;
|
||||
using Common.UI.WPF.Models;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
|
||||
internal class eRegister_PruefungInitialisierungVM : VM<eRegister_PruefungInitialisierungVM>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user