Projektdateien hinzufügen.
This commit is contained in:
parent
39509ef84f
commit
47fdda05b4
26
App.config
Normal file
26
App.config
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<configSections>
|
||||||
|
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<section name="DVAG___Mailverteiler.My.MySettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||||
|
</sectionGroup>
|
||||||
|
</configSections>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||||
|
</startup>
|
||||||
|
<userSettings>
|
||||||
|
<DVAG___Mailverteiler.My.MySettings>
|
||||||
|
<setting name="mail_auslesen" serializeAs="String">
|
||||||
|
<value>0</value>
|
||||||
|
</setting>
|
||||||
|
</DVAG___Mailverteiler.My.MySettings>
|
||||||
|
</userSettings>
|
||||||
|
<runtime>
|
||||||
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
</assemblyBinding>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
10
ApplicationEvents.vb
Normal file
10
ApplicationEvents.vb
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
Namespace My
|
||||||
|
' Für MyApplication sind folgende Ereignisse verfügbar:
|
||||||
|
' Startup: Wird beim Starten der Anwendung noch vor dem Erstellen des Startformulars ausgelöst.
|
||||||
|
' Shutdown: Wird nach dem Schließen aller Anwendungsformulare ausgelöst. Dieses Ereignis wird nicht ausgelöst, wenn die Anwendung mit einem Fehler beendet wird.
|
||||||
|
' UnhandledException: Wird bei einem Ausnahmefehler ausgelöst.
|
||||||
|
' StartupNextInstance: Wird beim Starten einer Einzelinstanzanwendung ausgelöst, wenn die Anwendung bereits aktiv ist.
|
||||||
|
' NetworkAvailabilityChanged: Wird beim Herstellen oder Trennen der Netzwerkverbindung ausgelöst.
|
||||||
|
Partial Friend Class MyApplication
|
||||||
|
End Class
|
||||||
|
End Namespace
|
||||||
39
DVAG - Mailverteiler.sln
Normal file
39
DVAG - Mailverteiler.sln
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.32126.315
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "DVAG - Mailverteiler", "DVAG - Mailverteiler.vbproj", "{A8E0FF7C-6740-42D6-90F3-D8109B45F6F6}"
|
||||||
|
EndProject
|
||||||
|
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "DVAG - Mailingverteiler", "..\DVAG - Mailingverteiler\DVAG - Mailingverteiler.vdproj", "{CA2A913C-DD5C-487D-AFCF-BA46D29FB230}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
Release|x64 = Release|x64
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{A8E0FF7C-6740-42D6-90F3-D8109B45F6F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{A8E0FF7C-6740-42D6-90F3-D8109B45F6F6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{A8E0FF7C-6740-42D6-90F3-D8109B45F6F6}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{A8E0FF7C-6740-42D6-90F3-D8109B45F6F6}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{A8E0FF7C-6740-42D6-90F3-D8109B45F6F6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{A8E0FF7C-6740-42D6-90F3-D8109B45F6F6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{A8E0FF7C-6740-42D6-90F3-D8109B45F6F6}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{A8E0FF7C-6740-42D6-90F3-D8109B45F6F6}.Release|x64.Build.0 = Release|x64
|
||||||
|
{CA2A913C-DD5C-487D-AFCF-BA46D29FB230}.Debug|Any CPU.ActiveCfg = Debug
|
||||||
|
{CA2A913C-DD5C-487D-AFCF-BA46D29FB230}.Debug|x64.ActiveCfg = Debug
|
||||||
|
{CA2A913C-DD5C-487D-AFCF-BA46D29FB230}.Debug|x64.Build.0 = Debug
|
||||||
|
{CA2A913C-DD5C-487D-AFCF-BA46D29FB230}.Release|Any CPU.ActiveCfg = Release
|
||||||
|
{CA2A913C-DD5C-487D-AFCF-BA46D29FB230}.Release|x64.ActiveCfg = Release
|
||||||
|
{CA2A913C-DD5C-487D-AFCF-BA46D29FB230}.Release|x64.Build.0 = Release
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {9C88E75E-8783-4E1D-8F30-EAF19BB97F22}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
227
DVAG - Mailverteiler.vbproj
Normal file
227
DVAG - Mailverteiler.vbproj
Normal file
@ -0,0 +1,227 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{A8E0FF7C-6740-42D6-90F3-D8109B45F6F6}</ProjectGuid>
|
||||||
|
<OutputType>WinExe</OutputType>
|
||||||
|
<StartupObject>DVAG___Mailverteiler.My.MyApplication</StartupObject>
|
||||||
|
<RootNamespace>DVAG___Mailverteiler</RootNamespace>
|
||||||
|
<AssemblyName>DVAG - Mailverteiler</AssemblyName>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<MyType>WindowsForms</MyType>
|
||||||
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||||
|
<PublishUrl>publish\</PublishUrl>
|
||||||
|
<Install>true</Install>
|
||||||
|
<InstallFrom>Disk</InstallFrom>
|
||||||
|
<UpdateEnabled>false</UpdateEnabled>
|
||||||
|
<UpdateMode>Foreground</UpdateMode>
|
||||||
|
<UpdateInterval>7</UpdateInterval>
|
||||||
|
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||||
|
<UpdatePeriodically>false</UpdatePeriodically>
|
||||||
|
<UpdateRequired>false</UpdateRequired>
|
||||||
|
<MapFileExtensions>true</MapFileExtensions>
|
||||||
|
<ApplicationRevision>0</ApplicationRevision>
|
||||||
|
<ApplicationVersion>1.1.2.%2a</ApplicationVersion>
|
||||||
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<DefineDebug>true</DefineDebug>
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DocumentationFile>DVAG - Mailverteiler.xml</DocumentationFile>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<DefineDebug>false</DefineDebug>
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DocumentationFile>DVAG - Mailverteiler.xml</DocumentationFile>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionExplicit>On</OptionExplicit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionCompare>Binary</OptionCompare>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionStrict>Off</OptionStrict>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionInfer>On</OptionInfer>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DefineDebug>true</DefineDebug>
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||||
|
<DocumentationFile>DVAG - Mailverteiler.xml</DocumentationFile>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<OutputPath>bin\x64\Release\</OutputPath>
|
||||||
|
<DocumentationFile>DVAG - Mailverteiler.xml</DocumentationFile>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
<Prefer32Bit>true</Prefer32Bit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="ChilkatDotNet47, Version=9.5.0.93, Culture=neutral, PublicKeyToken=eb5fc1fc52ef09bd, processorArchitecture=AMD64">
|
||||||
|
<HintPath>packages\chilkat-x64.9.5.0.93\lib\net472\ChilkatDotNet47.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="EAGetMail, Version=5.3.0.2, Culture=neutral, PublicKeyToken=e10a0812eb29cf94, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\EAGetMail.5.3.0.2\lib\net472\EAGetMail.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\Microsoft.Office.Interop.Outlook.15.0.4797.1003\lib\net20\Microsoft.Office.Interop.Outlook.dll</HintPath>
|
||||||
|
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="MySql.Data, Version=8.0.29.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\Program Files (x86)\MySQL\MySQL Connector Net 8.0.29\Assemblies\v4.5.2\MySql.Data.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Deployment" />
|
||||||
|
<Reference Include="System.Drawing" />
|
||||||
|
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Memory.4.5.4\lib\net461\System.Memory.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Numerics" />
|
||||||
|
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Security" />
|
||||||
|
<Reference Include="System.Security.Cryptography.Pkcs, Version=6.0.0.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Security.Cryptography.Pkcs.6.0.1\lib\net461\System.Security.Cryptography.Pkcs.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Text.Encoding.CodePages, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>packages\System.Text.Encoding.CodePages.6.0.0\lib\net461\System.Text.Encoding.CodePages.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Windows.Forms" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Import Include="Chilkat" />
|
||||||
|
<Import Include="Microsoft.VisualBasic" />
|
||||||
|
<Import Include="System" />
|
||||||
|
<Import Include="System.Collections" />
|
||||||
|
<Import Include="System.Collections.Generic" />
|
||||||
|
<Import Include="System.Data" />
|
||||||
|
<Import Include="System.Drawing" />
|
||||||
|
<Import Include="System.Diagnostics" />
|
||||||
|
<Import Include="System.Windows.Forms" />
|
||||||
|
<Import Include="System.Linq" />
|
||||||
|
<Import Include="System.Xml.Linq" />
|
||||||
|
<Import Include="System.Threading.Tasks" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="ApplicationEvents.vb" />
|
||||||
|
<Compile Include="Dashboard.Designer.vb">
|
||||||
|
<DependentUpon>Dashboard.vb</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Dashboard.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="mail_auslesen.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="mail_auslesen.Designer.vb">
|
||||||
|
<DependentUpon>mail_auslesen.vb</DependentUpon>
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="mail_sending.Designer.vb">
|
||||||
|
<DependentUpon>mail_sending.vb</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="mail_sending.vb">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||||
|
<Compile Include="My Project\Application.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Application.myapp</DependentUpon>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\Resources.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\Settings.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
|
</Compile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Include="Dashboard.resx">
|
||||||
|
<DependentUpon>Dashboard.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="mail_auslesen.resx">
|
||||||
|
<DependentUpon>mail_auslesen.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="mail_sending.resx">
|
||||||
|
<DependentUpon>mail_sending.vb</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="My Project\Resources.resx">
|
||||||
|
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||||
|
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</EmbeddedResource>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="My Project\Application.myapp">
|
||||||
|
<Generator>MyApplicationCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
<None Include="My Project\Settings.settings">
|
||||||
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
|
<CustomToolNamespace>My</CustomToolNamespace>
|
||||||
|
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
<None Include="App.config" />
|
||||||
|
<None Include="packages.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>Microsoft .NET Framework 4.7.2 %28x86 und x64%29</ProductName>
|
||||||
|
<Install>true</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||||
|
<Install>false</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||||
|
</Project>
|
||||||
97
Dashboard.Designer.vb
generated
Normal file
97
Dashboard.Designer.vb
generated
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
|
||||||
|
Partial Class Dashboard
|
||||||
|
Inherits System.Windows.Forms.Form
|
||||||
|
|
||||||
|
'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
|
||||||
|
<System.Diagnostics.DebuggerNonUserCode()>
|
||||||
|
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
|
Try
|
||||||
|
If disposing AndAlso components IsNot Nothing Then
|
||||||
|
components.Dispose()
|
||||||
|
End If
|
||||||
|
Finally
|
||||||
|
MyBase.Dispose(disposing)
|
||||||
|
End Try
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Wird vom Windows Form-Designer benötigt.
|
||||||
|
Private components As System.ComponentModel.IContainer
|
||||||
|
|
||||||
|
'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
|
||||||
|
'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
|
||||||
|
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
|
||||||
|
<System.Diagnostics.DebuggerStepThrough()>
|
||||||
|
Private Sub InitializeComponent()
|
||||||
|
Me.components = New System.ComponentModel.Container()
|
||||||
|
Me.bt_verarbeiten = New System.Windows.Forms.Button()
|
||||||
|
Me.bt_einlesen = New System.Windows.Forms.Button()
|
||||||
|
Me.lb_version = New System.Windows.Forms.Label()
|
||||||
|
Me.lb_Dienst = New System.Windows.Forms.Label()
|
||||||
|
Me.Timer_dienst = New System.Windows.Forms.Timer(Me.components)
|
||||||
|
Me.SuspendLayout()
|
||||||
|
'
|
||||||
|
'bt_verarbeiten
|
||||||
|
'
|
||||||
|
Me.bt_verarbeiten.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.bt_verarbeiten.Location = New System.Drawing.Point(132, 34)
|
||||||
|
Me.bt_verarbeiten.Name = "bt_verarbeiten"
|
||||||
|
Me.bt_verarbeiten.Size = New System.Drawing.Size(75, 23)
|
||||||
|
Me.bt_verarbeiten.TabIndex = 0
|
||||||
|
Me.bt_verarbeiten.Text = "Verarbeitung"
|
||||||
|
Me.bt_verarbeiten.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'bt_einlesen
|
||||||
|
'
|
||||||
|
Me.bt_einlesen.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.bt_einlesen.Location = New System.Drawing.Point(44, 34)
|
||||||
|
Me.bt_einlesen.Name = "bt_einlesen"
|
||||||
|
Me.bt_einlesen.Size = New System.Drawing.Size(75, 23)
|
||||||
|
Me.bt_einlesen.TabIndex = 1
|
||||||
|
Me.bt_einlesen.Text = "Einlesen"
|
||||||
|
Me.bt_einlesen.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'lb_version
|
||||||
|
'
|
||||||
|
Me.lb_version.AutoSize = True
|
||||||
|
Me.lb_version.Location = New System.Drawing.Point(12, 64)
|
||||||
|
Me.lb_version.Name = "lb_version"
|
||||||
|
Me.lb_version.Size = New System.Drawing.Size(55, 13)
|
||||||
|
Me.lb_version.TabIndex = 2
|
||||||
|
Me.lb_version.Text = "lb_version"
|
||||||
|
'
|
||||||
|
'lb_Dienst
|
||||||
|
'
|
||||||
|
Me.lb_Dienst.AutoSize = True
|
||||||
|
Me.lb_Dienst.Location = New System.Drawing.Point(116, 9)
|
||||||
|
Me.lb_Dienst.Name = "lb_Dienst"
|
||||||
|
Me.lb_Dienst.Size = New System.Drawing.Size(51, 13)
|
||||||
|
Me.lb_Dienst.TabIndex = 3
|
||||||
|
Me.lb_Dienst.Text = "lb_Dienst"
|
||||||
|
'
|
||||||
|
'Timer_dienst
|
||||||
|
'
|
||||||
|
Me.Timer_dienst.Interval = 5000
|
||||||
|
'
|
||||||
|
'Dashboard
|
||||||
|
'
|
||||||
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||||
|
Me.ClientSize = New System.Drawing.Size(270, 86)
|
||||||
|
Me.Controls.Add(Me.lb_Dienst)
|
||||||
|
Me.Controls.Add(Me.lb_version)
|
||||||
|
Me.Controls.Add(Me.bt_einlesen)
|
||||||
|
Me.Controls.Add(Me.bt_verarbeiten)
|
||||||
|
Me.Name = "Dashboard"
|
||||||
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||||
|
Me.Text = "Dashboard"
|
||||||
|
Me.ResumeLayout(False)
|
||||||
|
Me.PerformLayout()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend WithEvents bt_verarbeiten As Button
|
||||||
|
Friend WithEvents bt_einlesen As Button
|
||||||
|
Friend WithEvents lb_version As Label
|
||||||
|
Friend WithEvents lb_Dienst As Label
|
||||||
|
Friend WithEvents Timer_dienst As Timer
|
||||||
|
End Class
|
||||||
123
Dashboard.resx
Normal file
123
Dashboard.resx
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<metadata name="Timer_dienst.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
|
</root>
|
||||||
32
Dashboard.vb
Normal file
32
Dashboard.vb
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
Public Class Dashboard
|
||||||
|
Private Sub bt_einlesen_Click(sender As Object, e As EventArgs) Handles bt_einlesen.Click
|
||||||
|
mail_auslesen.Show()
|
||||||
|
Me.Hide()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub bt_verarbeiten_Click(sender As Object, e As EventArgs) Handles bt_verarbeiten.Click
|
||||||
|
mail_sending.Show()
|
||||||
|
Me.Hide()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
|
||||||
|
If MessageBox.Show("Schließen?", "Close", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = Windows.Forms.DialogResult.No Then
|
||||||
|
e.Cancel = True
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub Dashboard_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||||
|
lb_version.Text = My.Application.Info.Version.ToString
|
||||||
|
Timer_dienst.Start()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub Timer_dienst_Tick(sender As Object, e As EventArgs) Handles Timer_dienst.Tick
|
||||||
|
If My.Settings.mail_auslesen = "0" Then
|
||||||
|
lb_Dienst.Text = "Dienst angehalten"
|
||||||
|
Else
|
||||||
|
lb_Dienst.Text = "Dienst wird ausgeführt"
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
38
My Project/Application.Designer.vb
generated
Normal file
38
My Project/Application.Designer.vb
generated
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <auto-generated>
|
||||||
|
' Dieser Code wurde von einem Tool generiert.
|
||||||
|
' Laufzeitversion:4.0.30319.42000
|
||||||
|
'
|
||||||
|
' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||||
|
' der Code erneut generiert wird.
|
||||||
|
' </auto-generated>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
|
||||||
|
Namespace My
|
||||||
|
|
||||||
|
'HINWEIS: Diese Datei wird automatisch generiert und darf nicht direkt bearbeitet werden. Wenn Sie Änderungen vornehmen möchten
|
||||||
|
' oder in dieser Datei Buildfehler auftreten, wechseln Sie zum Projekt-Designer.
|
||||||
|
' (Wechseln Sie dazu zu den Projekteigenschaften, oder doppelklicken Sie auf den Knoten "Mein Projekt" im
|
||||||
|
' Projektmappen-Explorer). Nehmen Sie auf der Registerkarte "Anwendung" entsprechende Änderungen vor.
|
||||||
|
'
|
||||||
|
Partial Friend Class MyApplication
|
||||||
|
|
||||||
|
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
||||||
|
Public Sub New()
|
||||||
|
MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
|
||||||
|
Me.IsSingleInstance = false
|
||||||
|
Me.EnableVisualStyles = true
|
||||||
|
Me.SaveMySettingsOnExit = false
|
||||||
|
Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
||||||
|
Protected Overrides Sub OnCreateMainForm()
|
||||||
|
Me.MainForm = Global.DVAG___Mailverteiler.Dashboard
|
||||||
|
End Sub
|
||||||
|
End Class
|
||||||
|
End Namespace
|
||||||
10
My Project/Application.myapp
Normal file
10
My Project/Application.myapp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<MySubMain>true</MySubMain>
|
||||||
|
<MainForm>Dashboard</MainForm>
|
||||||
|
<SingleInstance>false</SingleInstance>
|
||||||
|
<ShutdownMode>0</ShutdownMode>
|
||||||
|
<EnableVisualStyles>true</EnableVisualStyles>
|
||||||
|
<AuthenticationMode>0</AuthenticationMode>
|
||||||
|
<SaveMySettingsOnExit>false</SaveMySettingsOnExit>
|
||||||
|
</MyApplicationData>
|
||||||
35
My Project/AssemblyInfo.vb
Normal file
35
My Project/AssemblyInfo.vb
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
Imports System
|
||||||
|
Imports System.Reflection
|
||||||
|
Imports System.Runtime.InteropServices
|
||||||
|
|
||||||
|
' Allgemeine Informationen über eine Assembly werden über die folgenden
|
||||||
|
' Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||||
|
' die einer Assembly zugeordnet sind.
|
||||||
|
|
||||||
|
' Werte der Assemblyattribute überprüfen
|
||||||
|
|
||||||
|
<Assembly: AssemblyTitle("DVAG - Mailverteiler")>
|
||||||
|
<Assembly: AssemblyDescription("")>
|
||||||
|
<Assembly: AssemblyCompany("")>
|
||||||
|
<Assembly: AssemblyProduct("DVAG - Mailverteiler")>
|
||||||
|
<Assembly: AssemblyCopyright("Copyright © 2022")>
|
||||||
|
<Assembly: AssemblyTrademark("")>
|
||||||
|
|
||||||
|
<Assembly: ComVisible(False)>
|
||||||
|
|
||||||
|
'Die folgende GUID wird für die typelib-ID verwendet, wenn dieses Projekt für COM verfügbar gemacht wird.
|
||||||
|
<Assembly: Guid("a96c5cfd-bc93-4ab9-a1b5-d2d49b8d626f")>
|
||||||
|
|
||||||
|
' Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
||||||
|
'
|
||||||
|
' Hauptversion
|
||||||
|
' Nebenversion
|
||||||
|
' Buildnummer
|
||||||
|
' Revision
|
||||||
|
'
|
||||||
|
' Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
||||||
|
' indem Sie "*" wie unten gezeigt eingeben:
|
||||||
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
|
<Assembly: AssemblyVersion("1.1.2.0")>
|
||||||
|
<Assembly: AssemblyFileVersion("1.1.2.0")>
|
||||||
62
My Project/Resources.Designer.vb
generated
Normal file
62
My Project/Resources.Designer.vb
generated
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <auto-generated>
|
||||||
|
' This code was generated by a tool.
|
||||||
|
' Runtime Version:4.0.30319.42000
|
||||||
|
'
|
||||||
|
' Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
' the code is regenerated.
|
||||||
|
' </auto-generated>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
|
||||||
|
Namespace My.Resources
|
||||||
|
|
||||||
|
'This class was auto-generated by the StronglyTypedResourceBuilder
|
||||||
|
'class via a tool like ResGen or Visual Studio.
|
||||||
|
'To add or remove a member, edit your .ResX file then rerun ResGen
|
||||||
|
'with the /str option, or rebuild your VS project.
|
||||||
|
'''<summary>
|
||||||
|
''' A strongly-typed resource class, for looking up localized strings, etc.
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
|
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||||
|
Friend Module Resources
|
||||||
|
|
||||||
|
Private resourceMan As Global.System.Resources.ResourceManager
|
||||||
|
|
||||||
|
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Returns the cached ResourceManager instance used by this class.
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||||
|
Get
|
||||||
|
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||||
|
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("DVAG___Mailverteiler.Resources", GetType(Resources).Assembly)
|
||||||
|
resourceMan = temp
|
||||||
|
End If
|
||||||
|
Return resourceMan
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Overrides the current thread's CurrentUICulture property for all
|
||||||
|
''' resource lookups using this strongly typed resource class.
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
||||||
|
Get
|
||||||
|
Return resourceCulture
|
||||||
|
End Get
|
||||||
|
Set(ByVal value As Global.System.Globalization.CultureInfo)
|
||||||
|
resourceCulture = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
End Module
|
||||||
|
End Namespace
|
||||||
117
My Project/Resources.resx
Normal file
117
My Project/Resources.resx
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
96
My Project/Settings.Designer.vb
generated
Normal file
96
My Project/Settings.Designer.vb
generated
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <auto-generated>
|
||||||
|
' Dieser Code wurde von einem Tool generiert.
|
||||||
|
' Laufzeitversion:4.0.30319.42000
|
||||||
|
'
|
||||||
|
' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||||
|
' der Code erneut generiert wird.
|
||||||
|
' </auto-generated>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
|
||||||
|
Namespace My
|
||||||
|
|
||||||
|
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0"), _
|
||||||
|
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Partial Friend NotInheritable Class MySettings
|
||||||
|
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||||
|
|
||||||
|
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
|
||||||
|
|
||||||
|
#Region "Automatische My.Settings-Speicherfunktion"
|
||||||
|
#If _MyType = "WindowsForms" Then
|
||||||
|
Private Shared addedHandler As Boolean
|
||||||
|
|
||||||
|
Private Shared addedHandlerLockObject As New Object
|
||||||
|
|
||||||
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Private Shared Sub AutoSaveSettings(sender As Global.System.Object, e As Global.System.EventArgs)
|
||||||
|
If My.Application.SaveMySettingsOnExit Then
|
||||||
|
My.Settings.Save()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
#End If
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
Public Shared ReadOnly Property [Default]() As MySettings
|
||||||
|
Get
|
||||||
|
|
||||||
|
#If _MyType = "WindowsForms" Then
|
||||||
|
If Not addedHandler Then
|
||||||
|
SyncLock addedHandlerLockObject
|
||||||
|
If Not addedHandler Then
|
||||||
|
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
||||||
|
addedHandler = True
|
||||||
|
End If
|
||||||
|
End SyncLock
|
||||||
|
End If
|
||||||
|
#End If
|
||||||
|
Return defaultInstance
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
<Global.System.Configuration.UserScopedSettingAttribute(), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Configuration.DefaultSettingValueAttribute("0")> _
|
||||||
|
Public Property mail_auslesen() As String
|
||||||
|
Get
|
||||||
|
Return CType(Me("mail_auslesen"),String)
|
||||||
|
End Get
|
||||||
|
Set
|
||||||
|
Me("mail_auslesen") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
<Global.System.Configuration.UserScopedSettingAttribute(), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
|
||||||
|
Public Property Outlookfolder() As Global.System.Collections.Specialized.StringCollection
|
||||||
|
Get
|
||||||
|
Return CType(Me("Outlookfolder"),Global.System.Collections.Specialized.StringCollection)
|
||||||
|
End Get
|
||||||
|
Set
|
||||||
|
Me("Outlookfolder") = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
End Class
|
||||||
|
End Namespace
|
||||||
|
|
||||||
|
Namespace My
|
||||||
|
|
||||||
|
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
||||||
|
Friend Module MySettingsProperty
|
||||||
|
|
||||||
|
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||||
|
Friend ReadOnly Property Settings() As Global.DVAG___Mailverteiler.My.MySettings
|
||||||
|
Get
|
||||||
|
Return Global.DVAG___Mailverteiler.My.MySettings.Default
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
End Module
|
||||||
|
End Namespace
|
||||||
12
My Project/Settings.settings
Normal file
12
My Project/Settings.settings
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="My" GeneratedClassName="MySettings" UseMySettingsClassName="true">
|
||||||
|
<Profiles />
|
||||||
|
<Settings>
|
||||||
|
<Setting Name="mail_auslesen" Type="System.String" Scope="User">
|
||||||
|
<Value Profile="(Default)">0</Value>
|
||||||
|
</Setting>
|
||||||
|
<Setting Name="Outlookfolder" Type="System.Collections.Specialized.StringCollection" Scope="User">
|
||||||
|
<Value Profile="(Default)" />
|
||||||
|
</Setting>
|
||||||
|
</Settings>
|
||||||
|
</SettingsFile>
|
||||||
202
mail_auslesen.Designer.vb
generated
Normal file
202
mail_auslesen.Designer.vb
generated
Normal file
@ -0,0 +1,202 @@
|
|||||||
|
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
|
||||||
|
Partial Class mail_auslesen
|
||||||
|
Inherits System.Windows.Forms.Form
|
||||||
|
|
||||||
|
'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
|
||||||
|
<System.Diagnostics.DebuggerNonUserCode()>
|
||||||
|
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
|
Try
|
||||||
|
If disposing AndAlso components IsNot Nothing Then
|
||||||
|
components.Dispose()
|
||||||
|
End If
|
||||||
|
Finally
|
||||||
|
MyBase.Dispose(disposing)
|
||||||
|
End Try
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Wird vom Windows Form-Designer benötigt.
|
||||||
|
Private components As System.ComponentModel.IContainer
|
||||||
|
|
||||||
|
'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
|
||||||
|
'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
|
||||||
|
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
|
||||||
|
<System.Diagnostics.DebuggerStepThrough()>
|
||||||
|
Private Sub InitializeComponent()
|
||||||
|
Me.components = New System.ComponentModel.Container()
|
||||||
|
Me.bt_start = New System.Windows.Forms.Button()
|
||||||
|
Me.rtb_mail_body = New System.Windows.Forms.RichTextBox()
|
||||||
|
Me.tb_betreff = New System.Windows.Forms.TextBox()
|
||||||
|
Me.Label1 = New System.Windows.Forms.Label()
|
||||||
|
Me.Label2 = New System.Windows.Forms.Label()
|
||||||
|
Me.Label3 = New System.Windows.Forms.Label()
|
||||||
|
Me.tb_an = New System.Windows.Forms.TextBox()
|
||||||
|
Me.Label4 = New System.Windows.Forms.Label()
|
||||||
|
Me.tb_von = New System.Windows.Forms.TextBox()
|
||||||
|
Me.lb_id = New System.Windows.Forms.Label()
|
||||||
|
Me.bt_stop = New System.Windows.Forms.Button()
|
||||||
|
Me.lb_mailing_ohne_freigabe = New System.Windows.Forms.Label()
|
||||||
|
Me.Timer_mail_auslesen = New System.Windows.Forms.Timer(Me.components)
|
||||||
|
Me.Button1 = New System.Windows.Forms.Button()
|
||||||
|
Me.SuspendLayout()
|
||||||
|
'
|
||||||
|
'bt_start
|
||||||
|
'
|
||||||
|
Me.bt_start.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.bt_start.Location = New System.Drawing.Point(392, 675)
|
||||||
|
Me.bt_start.Name = "bt_start"
|
||||||
|
Me.bt_start.Size = New System.Drawing.Size(75, 23)
|
||||||
|
Me.bt_start.TabIndex = 0
|
||||||
|
Me.bt_start.Text = "Start"
|
||||||
|
Me.bt_start.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'rtb_mail_body
|
||||||
|
'
|
||||||
|
Me.rtb_mail_body.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Left) _
|
||||||
|
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.rtb_mail_body.Location = New System.Drawing.Point(12, 141)
|
||||||
|
Me.rtb_mail_body.Name = "rtb_mail_body"
|
||||||
|
Me.rtb_mail_body.Size = New System.Drawing.Size(1000, 529)
|
||||||
|
Me.rtb_mail_body.TabIndex = 1
|
||||||
|
Me.rtb_mail_body.Text = ""
|
||||||
|
'
|
||||||
|
'tb_betreff
|
||||||
|
'
|
||||||
|
Me.tb_betreff.Location = New System.Drawing.Point(59, 92)
|
||||||
|
Me.tb_betreff.Name = "tb_betreff"
|
||||||
|
Me.tb_betreff.Size = New System.Drawing.Size(953, 20)
|
||||||
|
Me.tb_betreff.TabIndex = 2
|
||||||
|
'
|
||||||
|
'Label1
|
||||||
|
'
|
||||||
|
Me.Label1.AutoSize = True
|
||||||
|
Me.Label1.Location = New System.Drawing.Point(12, 95)
|
||||||
|
Me.Label1.Name = "Label1"
|
||||||
|
Me.Label1.Size = New System.Drawing.Size(41, 13)
|
||||||
|
Me.Label1.TabIndex = 3
|
||||||
|
Me.Label1.Text = "Betreff:"
|
||||||
|
'
|
||||||
|
'Label2
|
||||||
|
'
|
||||||
|
Me.Label2.AutoSize = True
|
||||||
|
Me.Label2.Location = New System.Drawing.Point(12, 125)
|
||||||
|
Me.Label2.Name = "Label2"
|
||||||
|
Me.Label2.Size = New System.Drawing.Size(53, 13)
|
||||||
|
Me.Label2.TabIndex = 4
|
||||||
|
Me.Label2.Text = "Message:"
|
||||||
|
'
|
||||||
|
'Label3
|
||||||
|
'
|
||||||
|
Me.Label3.AutoSize = True
|
||||||
|
Me.Label3.Location = New System.Drawing.Point(12, 69)
|
||||||
|
Me.Label3.Name = "Label3"
|
||||||
|
Me.Label3.Size = New System.Drawing.Size(23, 13)
|
||||||
|
Me.Label3.TabIndex = 6
|
||||||
|
Me.Label3.Text = "An:"
|
||||||
|
'
|
||||||
|
'tb_an
|
||||||
|
'
|
||||||
|
Me.tb_an.Location = New System.Drawing.Point(59, 66)
|
||||||
|
Me.tb_an.Name = "tb_an"
|
||||||
|
Me.tb_an.Size = New System.Drawing.Size(953, 20)
|
||||||
|
Me.tb_an.TabIndex = 5
|
||||||
|
'
|
||||||
|
'Label4
|
||||||
|
'
|
||||||
|
Me.Label4.AutoSize = True
|
||||||
|
Me.Label4.Location = New System.Drawing.Point(12, 43)
|
||||||
|
Me.Label4.Name = "Label4"
|
||||||
|
Me.Label4.Size = New System.Drawing.Size(29, 13)
|
||||||
|
Me.Label4.TabIndex = 8
|
||||||
|
Me.Label4.Text = "Von:"
|
||||||
|
'
|
||||||
|
'tb_von
|
||||||
|
'
|
||||||
|
Me.tb_von.Location = New System.Drawing.Point(59, 40)
|
||||||
|
Me.tb_von.Name = "tb_von"
|
||||||
|
Me.tb_von.Size = New System.Drawing.Size(953, 20)
|
||||||
|
Me.tb_von.TabIndex = 7
|
||||||
|
'
|
||||||
|
'lb_id
|
||||||
|
'
|
||||||
|
Me.lb_id.AutoSize = True
|
||||||
|
Me.lb_id.Location = New System.Drawing.Point(973, 9)
|
||||||
|
Me.lb_id.Name = "lb_id"
|
||||||
|
Me.lb_id.Size = New System.Drawing.Size(29, 13)
|
||||||
|
Me.lb_id.TabIndex = 9
|
||||||
|
Me.lb_id.Text = "lb_id"
|
||||||
|
'
|
||||||
|
'bt_stop
|
||||||
|
'
|
||||||
|
Me.bt_stop.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.bt_stop.Location = New System.Drawing.Point(500, 675)
|
||||||
|
Me.bt_stop.Name = "bt_stop"
|
||||||
|
Me.bt_stop.Size = New System.Drawing.Size(75, 23)
|
||||||
|
Me.bt_stop.TabIndex = 10
|
||||||
|
Me.bt_stop.Text = "Stop"
|
||||||
|
Me.bt_stop.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'lb_mailing_ohne_freigabe
|
||||||
|
'
|
||||||
|
Me.lb_mailing_ohne_freigabe.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||||
|
Me.lb_mailing_ohne_freigabe.AutoSize = True
|
||||||
|
Me.lb_mailing_ohne_freigabe.Location = New System.Drawing.Point(989, 689)
|
||||||
|
Me.lb_mailing_ohne_freigabe.Name = "lb_mailing_ohne_freigabe"
|
||||||
|
Me.lb_mailing_ohne_freigabe.Size = New System.Drawing.Size(127, 13)
|
||||||
|
Me.lb_mailing_ohne_freigabe.TabIndex = 11
|
||||||
|
Me.lb_mailing_ohne_freigabe.Text = "lb_mailing_ohne_freigabe"
|
||||||
|
'
|
||||||
|
'Timer_mail_auslesen
|
||||||
|
'
|
||||||
|
Me.Timer_mail_auslesen.Interval = 5000
|
||||||
|
'
|
||||||
|
'Button1
|
||||||
|
'
|
||||||
|
Me.Button1.Location = New System.Drawing.Point(15, 675)
|
||||||
|
Me.Button1.Name = "Button1"
|
||||||
|
Me.Button1.Size = New System.Drawing.Size(75, 23)
|
||||||
|
Me.Button1.TabIndex = 12
|
||||||
|
Me.Button1.Text = "Test"
|
||||||
|
Me.Button1.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'mail_auslesen
|
||||||
|
'
|
||||||
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||||
|
Me.ClientSize = New System.Drawing.Size(1024, 711)
|
||||||
|
Me.Controls.Add(Me.Button1)
|
||||||
|
Me.Controls.Add(Me.lb_mailing_ohne_freigabe)
|
||||||
|
Me.Controls.Add(Me.bt_stop)
|
||||||
|
Me.Controls.Add(Me.lb_id)
|
||||||
|
Me.Controls.Add(Me.Label4)
|
||||||
|
Me.Controls.Add(Me.tb_von)
|
||||||
|
Me.Controls.Add(Me.Label3)
|
||||||
|
Me.Controls.Add(Me.tb_an)
|
||||||
|
Me.Controls.Add(Me.Label2)
|
||||||
|
Me.Controls.Add(Me.Label1)
|
||||||
|
Me.Controls.Add(Me.tb_betreff)
|
||||||
|
Me.Controls.Add(Me.rtb_mail_body)
|
||||||
|
Me.Controls.Add(Me.bt_start)
|
||||||
|
Me.Name = "mail_auslesen"
|
||||||
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||||
|
Me.Text = "Form1"
|
||||||
|
Me.ResumeLayout(False)
|
||||||
|
Me.PerformLayout()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend WithEvents bt_start As Button
|
||||||
|
Friend WithEvents rtb_mail_body As RichTextBox
|
||||||
|
Friend WithEvents tb_betreff As TextBox
|
||||||
|
Friend WithEvents Label1 As Label
|
||||||
|
Friend WithEvents Label2 As Label
|
||||||
|
Friend WithEvents Label3 As Label
|
||||||
|
Friend WithEvents tb_an As TextBox
|
||||||
|
Friend WithEvents Label4 As Label
|
||||||
|
Friend WithEvents tb_von As TextBox
|
||||||
|
Friend WithEvents lb_id As Label
|
||||||
|
Friend WithEvents bt_stop As Button
|
||||||
|
Friend WithEvents lb_mailing_ohne_freigabe As Label
|
||||||
|
Friend WithEvents Timer_mail_auslesen As Timer
|
||||||
|
Friend WithEvents Button1 As Button
|
||||||
|
End Class
|
||||||
123
mail_auslesen.resx
Normal file
123
mail_auslesen.resx
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<metadata name="Timer_mail_auslesen.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
|
</root>
|
||||||
242
mail_auslesen.vb
Normal file
242
mail_auslesen.vb
Normal file
@ -0,0 +1,242 @@
|
|||||||
|
Option Explicit On
|
||||||
|
'Imports Microsoft.Office.Interop.Outlook
|
||||||
|
Imports MySql.Data.MySqlClient
|
||||||
|
Imports System.Globalization
|
||||||
|
Imports System.Text
|
||||||
|
Imports System.IO
|
||||||
|
Imports EAGetMail
|
||||||
|
Imports Chilkat
|
||||||
|
|
||||||
|
|
||||||
|
Public Class mail_auslesen
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles bt_start.Click
|
||||||
|
|
||||||
|
Timer_mail_auslesen.Start()
|
||||||
|
My.Settings.mail_auslesen = "1"
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Function _generateFileName(ByVal sequence As Integer) As String
|
||||||
|
Dim currentDateTime As DateTime = DateTime.Now
|
||||||
|
Return String.Format("{0}-{1:000}-{2:000}.eml",
|
||||||
|
currentDateTime.ToString("yyyyMMddHHmmss", New CultureInfo("en-US")),
|
||||||
|
currentDateTime.Millisecond,
|
||||||
|
sequence)
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
Public Sub einlesen()
|
||||||
|
System.Windows.Forms.Application.DoEvents()
|
||||||
|
Timer_mail_auslesen.Stop()
|
||||||
|
|
||||||
|
|
||||||
|
Dim connStr As String = "server=localhost;user=root;database=dvag_mailing;port=3306;password=;charset=utf8;"
|
||||||
|
Dim conn As New MySqlConnection(connStr)
|
||||||
|
Dim sqlcmd As New MySqlCommand
|
||||||
|
Dim dr
|
||||||
|
Dim dw
|
||||||
|
Dim mailing_ohne_freigabe
|
||||||
|
|
||||||
|
Dim strFile As String
|
||||||
|
Dim strFolderpath As String
|
||||||
|
|
||||||
|
Dim imap As New Chilkat.Imap
|
||||||
|
|
||||||
|
' Connect to an IMAP server.
|
||||||
|
' Use TLS
|
||||||
|
imap.Ssl = False
|
||||||
|
imap.Port = 150
|
||||||
|
Dim success As Boolean = imap.Connect("127.0.0.1")
|
||||||
|
If (success <> True) Then
|
||||||
|
Debug.WriteLine(imap.LastErrorText)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
' Login
|
||||||
|
success = imap.Login("vorstand@mailing.geographie-dvag.de", "0!07N8,#nvLK6LiG^+PX")
|
||||||
|
If (success <> True) Then
|
||||||
|
Debug.WriteLine(imap.LastErrorText)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
' Select an IMAP mailbox
|
||||||
|
success = imap.SelectMailbox("Inbox")
|
||||||
|
If (success <> True) Then
|
||||||
|
Debug.WriteLine(imap.LastErrorText)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Dim messageSet As Chilkat.MessageSet
|
||||||
|
' We can choose to fetch UIDs or sequence numbers.
|
||||||
|
Dim fetchUids As Boolean = True
|
||||||
|
' Get the message IDs of all the emails in the mailbox
|
||||||
|
messageSet = imap.Search("UNSEEN", fetchUids)
|
||||||
|
If (imap.LastMethodSuccess = False) Then
|
||||||
|
Debug.WriteLine(imap.LastErrorText)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
' Fetch the emails into a bundle object:
|
||||||
|
Dim bundle As Chilkat.EmailBundle
|
||||||
|
bundle = imap.FetchBundle(messageSet)
|
||||||
|
If (imap.LastMethodSuccess = False) Then
|
||||||
|
|
||||||
|
Debug.WriteLine(imap.LastErrorText)
|
||||||
|
Exit Sub
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
' Loop over the bundle and display the FROM and SUBJECT of each.
|
||||||
|
Dim i As Integer = 0
|
||||||
|
Dim numEmails As Integer = bundle.MessageCount
|
||||||
|
While i < numEmails
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
' ID Auslesen
|
||||||
|
Try
|
||||||
|
conn.Open()
|
||||||
|
sqlcmd = New MySqlCommand("SELECT MAX(id) FROM data", conn)
|
||||||
|
dr = sqlcmd.ExecuteScalar()
|
||||||
|
'MsgBox(dr)
|
||||||
|
lb_id.Text = dr + 1
|
||||||
|
conn.Close()
|
||||||
|
Catch ex As System.Exception
|
||||||
|
MsgBox(ex.ToString)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
' Ordner anlegen
|
||||||
|
Try
|
||||||
|
System.IO.Directory.CreateDirectory("C:\DVAG\Mailing\" & lb_id.Text)
|
||||||
|
strFolderpath = "C:\DVAG\Mailing\" & lb_id.Text & "\"
|
||||||
|
Catch ex As System.Exception
|
||||||
|
|
||||||
|
End Try
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Dim email As Chilkat.Email = bundle.GetEmail(i)
|
||||||
|
'Debug.WriteLine(email.FromAddress)
|
||||||
|
'Debug.WriteLine(email.GetToAddr(i))
|
||||||
|
'Debug.WriteLine(email.Subject)
|
||||||
|
'Debug.WriteLine(email.Body)
|
||||||
|
'Debug.WriteLine("--")
|
||||||
|
|
||||||
|
tb_von.Text = (email.FromAddress)
|
||||||
|
tb_an.Text = (email.GetToAddr("0"))
|
||||||
|
|
||||||
|
tb_betreff.Text = (email.Subject)
|
||||||
|
rtb_mail_body.Text = (email.Body)
|
||||||
|
|
||||||
|
rtb_mail_body.Text = rtb_mail_body.Text.Replace("'", "''")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
'Attachment speichern
|
||||||
|
|
||||||
|
email.SaveAllAttachments(strFolderpath)
|
||||||
|
|
||||||
|
|
||||||
|
'Zugriff abfragen
|
||||||
|
Try
|
||||||
|
|
||||||
|
conn.Open()
|
||||||
|
sqlcmd = New MySqlCommand("select * from zugriff where mail = '" & tb_von.Text & "' and sender_mail = '" & tb_an.Text & "'", conn)
|
||||||
|
|
||||||
|
mailing_ohne_freigabe = sqlcmd.ExecuteScalar()
|
||||||
|
lb_mailing_ohne_freigabe.Text = mailing_ohne_freigabe
|
||||||
|
conn.Close()
|
||||||
|
Catch ex As System.Exception
|
||||||
|
|
||||||
|
End Try
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If lb_mailing_ohne_freigabe.Text = "" Then
|
||||||
|
lb_mailing_ohne_freigabe.Text = "0"
|
||||||
|
Else
|
||||||
|
lb_mailing_ohne_freigabe.Text = "1"
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
' Daten in DB speichern
|
||||||
|
conn.Open()
|
||||||
|
sqlcmd = New MySqlCommand("insert into `data` (`ID`, `from`, `to`, `subject`, `text`, `send`, `mailing_ohne_freigabe`) values ('" & lb_id.Text & "','" & tb_von.Text & "','" & tb_an.Text & "','" & tb_betreff.Text & "','" & rtb_mail_body.Text & "', '0','" & lb_mailing_ohne_freigabe.Text & "' )", conn)
|
||||||
|
|
||||||
|
dw = sqlcmd.ExecuteScalar()
|
||||||
|
conn.Close()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
success = imap.SetFlags(messageSet, "SEEN", 1)
|
||||||
|
|
||||||
|
|
||||||
|
' Disconnect from the IMAP server.
|
||||||
|
success = imap.Disconnect()
|
||||||
|
|
||||||
|
i = i + 1
|
||||||
|
|
||||||
|
|
||||||
|
'Felder leeren
|
||||||
|
tb_von.Text = ""
|
||||||
|
tb_an.Text = ""
|
||||||
|
tb_betreff.Text = ""
|
||||||
|
rtb_mail_body.Text = ""
|
||||||
|
lb_id.Text = ""
|
||||||
|
|
||||||
|
|
||||||
|
End While
|
||||||
|
|
||||||
|
mail_sending.bt_start.PerformClick()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
|
||||||
|
Dashboard.Show()
|
||||||
|
Me.Hide()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub Button1_Click_1(sender As Object, e As EventArgs) Handles bt_stop.Click
|
||||||
|
|
||||||
|
Timer_mail_auslesen.Stop()
|
||||||
|
My.Settings.mail_auslesen = "0"
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Public Shared Function Middle(str As String, startchar As String, endchar As String) As String
|
||||||
|
Dim strStart As String = str.IndexOf(startchar) + 1
|
||||||
|
Dim strEnd As Integer = str.LastIndexOf(endchar)
|
||||||
|
Return str.Substring(strStart, strEnd - strStart)
|
||||||
|
' MsgBox(Middle(Str1, " To: < ", "test.com>"))
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Sub Timer_mail_auslesen_Tick(sender As Object, e As EventArgs) Handles Timer_mail_auslesen.Tick
|
||||||
|
|
||||||
|
einlesen()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Sub Button1_Click_2(sender As Object, e As EventArgs) Handles Button1.Click
|
||||||
|
|
||||||
|
|
||||||
|
einlesen()
|
||||||
|
End Sub
|
||||||
|
End Class
|
||||||
|
|
||||||
|
|
||||||
282
mail_sending.Designer.vb
generated
Normal file
282
mail_sending.Designer.vb
generated
Normal file
@ -0,0 +1,282 @@
|
|||||||
|
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
|
||||||
|
Partial Class mail_sending
|
||||||
|
Inherits System.Windows.Forms.Form
|
||||||
|
|
||||||
|
'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
|
||||||
|
<System.Diagnostics.DebuggerNonUserCode()>
|
||||||
|
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||||
|
Try
|
||||||
|
If disposing AndAlso components IsNot Nothing Then
|
||||||
|
components.Dispose()
|
||||||
|
End If
|
||||||
|
Finally
|
||||||
|
MyBase.Dispose(disposing)
|
||||||
|
End Try
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
'Wird vom Windows Form-Designer benötigt.
|
||||||
|
Private components As System.ComponentModel.IContainer
|
||||||
|
|
||||||
|
'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
|
||||||
|
'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
|
||||||
|
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
|
||||||
|
<System.Diagnostics.DebuggerStepThrough()>
|
||||||
|
Private Sub InitializeComponent()
|
||||||
|
Me.rtb_mail_body = New System.Windows.Forms.RichTextBox()
|
||||||
|
Me.bt_start = New System.Windows.Forms.Button()
|
||||||
|
Me.lb_id = New System.Windows.Forms.Label()
|
||||||
|
Me.Label4 = New System.Windows.Forms.Label()
|
||||||
|
Me.tb_von = New System.Windows.Forms.TextBox()
|
||||||
|
Me.Label3 = New System.Windows.Forms.Label()
|
||||||
|
Me.tb_an = New System.Windows.Forms.TextBox()
|
||||||
|
Me.Label2 = New System.Windows.Forms.Label()
|
||||||
|
Me.Label1 = New System.Windows.Forms.Label()
|
||||||
|
Me.tb_betreff = New System.Windows.Forms.TextBox()
|
||||||
|
Me.GroupBox1 = New System.Windows.Forms.GroupBox()
|
||||||
|
Me.tb_sender_name = New System.Windows.Forms.TextBox()
|
||||||
|
Me.Label9 = New System.Windows.Forms.Label()
|
||||||
|
Me.Label8 = New System.Windows.Forms.Label()
|
||||||
|
Me.rtb_log = New System.Windows.Forms.RichTextBox()
|
||||||
|
Me.Label7 = New System.Windows.Forms.Label()
|
||||||
|
Me.rtb_empfaengergruppe = New System.Windows.Forms.RichTextBox()
|
||||||
|
Me.tb_sender_mail = New System.Windows.Forms.TextBox()
|
||||||
|
Me.tb_ak_gruppe = New System.Windows.Forms.TextBox()
|
||||||
|
Me.Label6 = New System.Windows.Forms.Label()
|
||||||
|
Me.Label5 = New System.Windows.Forms.Label()
|
||||||
|
Me.GroupBox1.SuspendLayout()
|
||||||
|
Me.SuspendLayout()
|
||||||
|
'
|
||||||
|
'rtb_mail_body
|
||||||
|
'
|
||||||
|
Me.rtb_mail_body.Location = New System.Drawing.Point(12, 517)
|
||||||
|
Me.rtb_mail_body.Name = "rtb_mail_body"
|
||||||
|
Me.rtb_mail_body.Size = New System.Drawing.Size(897, 179)
|
||||||
|
Me.rtb_mail_body.TabIndex = 0
|
||||||
|
Me.rtb_mail_body.Text = ""
|
||||||
|
'
|
||||||
|
'bt_start
|
||||||
|
'
|
||||||
|
Me.bt_start.Location = New System.Drawing.Point(12, 702)
|
||||||
|
Me.bt_start.Name = "bt_start"
|
||||||
|
Me.bt_start.Size = New System.Drawing.Size(75, 23)
|
||||||
|
Me.bt_start.TabIndex = 1
|
||||||
|
Me.bt_start.Text = "Start"
|
||||||
|
Me.bt_start.UseVisualStyleBackColor = True
|
||||||
|
'
|
||||||
|
'lb_id
|
||||||
|
'
|
||||||
|
Me.lb_id.AutoSize = True
|
||||||
|
Me.lb_id.Location = New System.Drawing.Point(880, 9)
|
||||||
|
Me.lb_id.Name = "lb_id"
|
||||||
|
Me.lb_id.Size = New System.Drawing.Size(29, 13)
|
||||||
|
Me.lb_id.TabIndex = 2
|
||||||
|
Me.lb_id.Text = "lb_id"
|
||||||
|
'
|
||||||
|
'Label4
|
||||||
|
'
|
||||||
|
Me.Label4.AutoSize = True
|
||||||
|
Me.Label4.Location = New System.Drawing.Point(12, 413)
|
||||||
|
Me.Label4.Name = "Label4"
|
||||||
|
Me.Label4.Size = New System.Drawing.Size(29, 13)
|
||||||
|
Me.Label4.TabIndex = 15
|
||||||
|
Me.Label4.Text = "Von:"
|
||||||
|
'
|
||||||
|
'tb_von
|
||||||
|
'
|
||||||
|
Me.tb_von.Location = New System.Drawing.Point(81, 410)
|
||||||
|
Me.tb_von.Name = "tb_von"
|
||||||
|
Me.tb_von.Size = New System.Drawing.Size(828, 20)
|
||||||
|
Me.tb_von.TabIndex = 14
|
||||||
|
'
|
||||||
|
'Label3
|
||||||
|
'
|
||||||
|
Me.Label3.AutoSize = True
|
||||||
|
Me.Label3.Location = New System.Drawing.Point(12, 439)
|
||||||
|
Me.Label3.Name = "Label3"
|
||||||
|
Me.Label3.Size = New System.Drawing.Size(23, 13)
|
||||||
|
Me.Label3.TabIndex = 13
|
||||||
|
Me.Label3.Text = "An:"
|
||||||
|
'
|
||||||
|
'tb_an
|
||||||
|
'
|
||||||
|
Me.tb_an.Location = New System.Drawing.Point(81, 436)
|
||||||
|
Me.tb_an.Name = "tb_an"
|
||||||
|
Me.tb_an.Size = New System.Drawing.Size(828, 20)
|
||||||
|
Me.tb_an.TabIndex = 12
|
||||||
|
'
|
||||||
|
'Label2
|
||||||
|
'
|
||||||
|
Me.Label2.AutoSize = True
|
||||||
|
Me.Label2.Location = New System.Drawing.Point(12, 495)
|
||||||
|
Me.Label2.Name = "Label2"
|
||||||
|
Me.Label2.Size = New System.Drawing.Size(53, 13)
|
||||||
|
Me.Label2.TabIndex = 11
|
||||||
|
Me.Label2.Text = "Message:"
|
||||||
|
'
|
||||||
|
'Label1
|
||||||
|
'
|
||||||
|
Me.Label1.AutoSize = True
|
||||||
|
Me.Label1.Location = New System.Drawing.Point(12, 465)
|
||||||
|
Me.Label1.Name = "Label1"
|
||||||
|
Me.Label1.Size = New System.Drawing.Size(41, 13)
|
||||||
|
Me.Label1.TabIndex = 10
|
||||||
|
Me.Label1.Text = "Betreff:"
|
||||||
|
'
|
||||||
|
'tb_betreff
|
||||||
|
'
|
||||||
|
Me.tb_betreff.Location = New System.Drawing.Point(81, 462)
|
||||||
|
Me.tb_betreff.Name = "tb_betreff"
|
||||||
|
Me.tb_betreff.Size = New System.Drawing.Size(828, 20)
|
||||||
|
Me.tb_betreff.TabIndex = 9
|
||||||
|
'
|
||||||
|
'GroupBox1
|
||||||
|
'
|
||||||
|
Me.GroupBox1.Controls.Add(Me.tb_sender_name)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.Label9)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.Label8)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.rtb_log)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.Label7)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.rtb_empfaengergruppe)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.tb_sender_mail)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.tb_ak_gruppe)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.Label6)
|
||||||
|
Me.GroupBox1.Controls.Add(Me.Label5)
|
||||||
|
Me.GroupBox1.Location = New System.Drawing.Point(12, 37)
|
||||||
|
Me.GroupBox1.Name = "GroupBox1"
|
||||||
|
Me.GroupBox1.Size = New System.Drawing.Size(897, 351)
|
||||||
|
Me.GroupBox1.TabIndex = 16
|
||||||
|
Me.GroupBox1.TabStop = False
|
||||||
|
Me.GroupBox1.Text = "DVAG - Daten"
|
||||||
|
'
|
||||||
|
'tb_sender_name
|
||||||
|
'
|
||||||
|
Me.tb_sender_name.Location = New System.Drawing.Point(69, 77)
|
||||||
|
Me.tb_sender_name.Name = "tb_sender_name"
|
||||||
|
Me.tb_sender_name.Size = New System.Drawing.Size(377, 20)
|
||||||
|
Me.tb_sender_name.TabIndex = 9
|
||||||
|
'
|
||||||
|
'Label9
|
||||||
|
'
|
||||||
|
Me.Label9.AutoSize = True
|
||||||
|
Me.Label9.Location = New System.Drawing.Point(3, 80)
|
||||||
|
Me.Label9.Name = "Label9"
|
||||||
|
Me.Label9.Size = New System.Drawing.Size(64, 13)
|
||||||
|
Me.Label9.TabIndex = 8
|
||||||
|
Me.Label9.Text = "From Name:"
|
||||||
|
'
|
||||||
|
'Label8
|
||||||
|
'
|
||||||
|
Me.Label8.AutoSize = True
|
||||||
|
Me.Label8.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
|
||||||
|
Me.Label8.Location = New System.Drawing.Point(654, 21)
|
||||||
|
Me.Label8.Name = "Label8"
|
||||||
|
Me.Label8.Size = New System.Drawing.Size(39, 20)
|
||||||
|
Me.Label8.TabIndex = 7
|
||||||
|
Me.Label8.Text = "Log"
|
||||||
|
'
|
||||||
|
'rtb_log
|
||||||
|
'
|
||||||
|
Me.rtb_log.Location = New System.Drawing.Point(452, 51)
|
||||||
|
Me.rtb_log.Name = "rtb_log"
|
||||||
|
Me.rtb_log.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical
|
||||||
|
Me.rtb_log.Size = New System.Drawing.Size(439, 294)
|
||||||
|
Me.rtb_log.TabIndex = 6
|
||||||
|
Me.rtb_log.Text = ""
|
||||||
|
'
|
||||||
|
'Label7
|
||||||
|
'
|
||||||
|
Me.Label7.AutoSize = True
|
||||||
|
Me.Label7.Location = New System.Drawing.Point(2, 106)
|
||||||
|
Me.Label7.Name = "Label7"
|
||||||
|
Me.Label7.Size = New System.Drawing.Size(61, 13)
|
||||||
|
Me.Label7.TabIndex = 5
|
||||||
|
Me.Label7.Text = "Empfänger:"
|
||||||
|
'
|
||||||
|
'rtb_empfaengergruppe
|
||||||
|
'
|
||||||
|
Me.rtb_empfaengergruppe.Location = New System.Drawing.Point(69, 103)
|
||||||
|
Me.rtb_empfaengergruppe.Name = "rtb_empfaengergruppe"
|
||||||
|
Me.rtb_empfaengergruppe.Size = New System.Drawing.Size(377, 242)
|
||||||
|
Me.rtb_empfaengergruppe.TabIndex = 4
|
||||||
|
Me.rtb_empfaengergruppe.Text = ""
|
||||||
|
'
|
||||||
|
'tb_sender_mail
|
||||||
|
'
|
||||||
|
Me.tb_sender_mail.Location = New System.Drawing.Point(69, 51)
|
||||||
|
Me.tb_sender_mail.Name = "tb_sender_mail"
|
||||||
|
Me.tb_sender_mail.Size = New System.Drawing.Size(377, 20)
|
||||||
|
Me.tb_sender_mail.TabIndex = 3
|
||||||
|
'
|
||||||
|
'tb_ak_gruppe
|
||||||
|
'
|
||||||
|
Me.tb_ak_gruppe.Location = New System.Drawing.Point(69, 23)
|
||||||
|
Me.tb_ak_gruppe.Name = "tb_ak_gruppe"
|
||||||
|
Me.tb_ak_gruppe.Size = New System.Drawing.Size(377, 20)
|
||||||
|
Me.tb_ak_gruppe.TabIndex = 2
|
||||||
|
'
|
||||||
|
'Label6
|
||||||
|
'
|
||||||
|
Me.Label6.AutoSize = True
|
||||||
|
Me.Label6.Location = New System.Drawing.Point(3, 54)
|
||||||
|
Me.Label6.Name = "Label6"
|
||||||
|
Me.Label6.Size = New System.Drawing.Size(55, 13)
|
||||||
|
Me.Label6.TabIndex = 1
|
||||||
|
Me.Label6.Text = "Absender:"
|
||||||
|
'
|
||||||
|
'Label5
|
||||||
|
'
|
||||||
|
Me.Label5.AutoSize = True
|
||||||
|
Me.Label5.Location = New System.Drawing.Point(5, 26)
|
||||||
|
Me.Label5.Name = "Label5"
|
||||||
|
Me.Label5.Size = New System.Drawing.Size(24, 13)
|
||||||
|
Me.Label5.TabIndex = 0
|
||||||
|
Me.Label5.Text = "AK:"
|
||||||
|
'
|
||||||
|
'mail_sending
|
||||||
|
'
|
||||||
|
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||||
|
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||||
|
Me.ClientSize = New System.Drawing.Size(921, 737)
|
||||||
|
Me.Controls.Add(Me.GroupBox1)
|
||||||
|
Me.Controls.Add(Me.Label4)
|
||||||
|
Me.Controls.Add(Me.tb_von)
|
||||||
|
Me.Controls.Add(Me.Label3)
|
||||||
|
Me.Controls.Add(Me.tb_an)
|
||||||
|
Me.Controls.Add(Me.Label2)
|
||||||
|
Me.Controls.Add(Me.Label1)
|
||||||
|
Me.Controls.Add(Me.tb_betreff)
|
||||||
|
Me.Controls.Add(Me.lb_id)
|
||||||
|
Me.Controls.Add(Me.bt_start)
|
||||||
|
Me.Controls.Add(Me.rtb_mail_body)
|
||||||
|
Me.Name = "mail_sending"
|
||||||
|
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||||
|
Me.Text = "mail_sending"
|
||||||
|
Me.GroupBox1.ResumeLayout(False)
|
||||||
|
Me.GroupBox1.PerformLayout()
|
||||||
|
Me.ResumeLayout(False)
|
||||||
|
Me.PerformLayout()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend WithEvents rtb_mail_body As RichTextBox
|
||||||
|
Friend WithEvents bt_start As Button
|
||||||
|
Friend WithEvents lb_id As Label
|
||||||
|
Friend WithEvents Label4 As Label
|
||||||
|
Friend WithEvents tb_von As TextBox
|
||||||
|
Friend WithEvents Label3 As Label
|
||||||
|
Friend WithEvents tb_an As TextBox
|
||||||
|
Friend WithEvents Label2 As Label
|
||||||
|
Friend WithEvents Label1 As Label
|
||||||
|
Friend WithEvents tb_betreff As TextBox
|
||||||
|
Friend WithEvents GroupBox1 As GroupBox
|
||||||
|
Friend WithEvents Label7 As Label
|
||||||
|
Friend WithEvents rtb_empfaengergruppe As RichTextBox
|
||||||
|
Friend WithEvents tb_sender_mail As TextBox
|
||||||
|
Friend WithEvents tb_ak_gruppe As TextBox
|
||||||
|
Friend WithEvents Label6 As Label
|
||||||
|
Friend WithEvents Label5 As Label
|
||||||
|
Friend WithEvents Label8 As Label
|
||||||
|
Friend WithEvents rtb_log As RichTextBox
|
||||||
|
Friend WithEvents tb_sender_name As TextBox
|
||||||
|
Friend WithEvents Label9 As Label
|
||||||
|
End Class
|
||||||
120
mail_sending.resx
Normal file
120
mail_sending.resx
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
370
mail_sending.vb
Normal file
370
mail_sending.vb
Normal file
@ -0,0 +1,370 @@
|
|||||||
|
Imports MySql.Data.MySqlClient
|
||||||
|
Imports System.Net.Mail
|
||||||
|
|
||||||
|
Public Class mail_sending
|
||||||
|
|
||||||
|
Dim connStr As String = "server=localhost;user=root;database=dvag_mailing;port=3306;password=;charset=utf8;"
|
||||||
|
Dim connstr_dvag As String = "server=localhost;user=root;database=dvag;port=3306;password=;charset=utf8;"
|
||||||
|
Dim conn As New MySqlConnection(connStr)
|
||||||
|
Dim conn_dvag As New MySqlConnection(connstr_dvag)
|
||||||
|
Dim sqlcmd As New MySqlCommand
|
||||||
|
Dim dr
|
||||||
|
Dim dw
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub bt_start_Click(sender As Object, e As EventArgs) Handles bt_start.Click
|
||||||
|
|
||||||
|
|
||||||
|
System.Windows.Forms.Application.DoEvents()
|
||||||
|
|
||||||
|
'ID einlesen
|
||||||
|
Try
|
||||||
|
conn.Open()
|
||||||
|
sqlcmd = New MySqlCommand("SELECT id FROM data where send = 0 and mailing_ohne_freigabe = 1", conn)
|
||||||
|
dr = sqlcmd.ExecuteScalar()
|
||||||
|
lb_id.Text = dr
|
||||||
|
conn.Close()
|
||||||
|
rtb_log.Text = rtb_log.Text & DateTime.Now & ": ID " & lb_id.Text & " erfolgreich eingelesen" & vbNewLine
|
||||||
|
rtb_log.ScrollToCaret()
|
||||||
|
Catch ex As System.Exception
|
||||||
|
MsgBox(ex.ToString)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
If lb_id.Text = "" Then
|
||||||
|
rtb_log.Text = rtb_log.Text & DateTime.Now & ": Keine Mailings zum verarbeiten gefunden" & vbNewLine
|
||||||
|
Else
|
||||||
|
'von einlesen
|
||||||
|
Try
|
||||||
|
conn.Open()
|
||||||
|
sqlcmd = New MySqlCommand("SELECT `from` FROM data where ID = " & lb_id.Text & "", conn)
|
||||||
|
dr = sqlcmd.ExecuteScalar()
|
||||||
|
tb_von.Text = dr
|
||||||
|
conn.Close()
|
||||||
|
rtb_log.Text = rtb_log.Text & DateTime.Now & ": Mail von erfolgreich eingelesen" & vbNewLine
|
||||||
|
rtb_log.ScrollToCaret()
|
||||||
|
Catch ex As System.Exception
|
||||||
|
MsgBox(ex.ToString)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
'an einlesen
|
||||||
|
Try
|
||||||
|
conn.Open()
|
||||||
|
sqlcmd = New MySqlCommand("SELECT `to` FROM data where ID = " & lb_id.Text & "", conn)
|
||||||
|
dr = sqlcmd.ExecuteScalar()
|
||||||
|
tb_an.Text = dr
|
||||||
|
conn.Close()
|
||||||
|
rtb_log.Text = rtb_log.Text & DateTime.Now & ": Mail an erfolgreich eingelesen" & vbNewLine
|
||||||
|
rtb_log.ScrollToCaret()
|
||||||
|
Catch ex As System.Exception
|
||||||
|
MsgBox(ex.ToString)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
|
||||||
|
'Betreff einlesen
|
||||||
|
Try
|
||||||
|
conn.Open()
|
||||||
|
sqlcmd = New MySqlCommand("SELECT `subject` FROM data where ID = " & lb_id.Text & "", conn)
|
||||||
|
dr = sqlcmd.ExecuteScalar()
|
||||||
|
tb_betreff.Text = dr
|
||||||
|
conn.Close()
|
||||||
|
rtb_log.Text = rtb_log.Text & DateTime.Now & ": Betreff erfolgreich eingelesen" & vbNewLine
|
||||||
|
rtb_log.ScrollToCaret()
|
||||||
|
Catch ex As System.Exception
|
||||||
|
MsgBox(ex.ToString)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
'text einlesen
|
||||||
|
Try
|
||||||
|
conn.Open()
|
||||||
|
sqlcmd = New MySqlCommand("SELECT `text` FROM data where ID = " & lb_id.Text & "", conn)
|
||||||
|
dr = sqlcmd.ExecuteScalar()
|
||||||
|
rtb_mail_body.Text = dr
|
||||||
|
conn.Close()
|
||||||
|
rtb_log.Text = rtb_log.Text & DateTime.Now & ": Mail Body erfolgreich eingelesen" & vbNewLine
|
||||||
|
rtb_log.ScrollToCaret()
|
||||||
|
Catch ex As System.Exception
|
||||||
|
MsgBox(ex.ToString)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
'AK einlesen
|
||||||
|
Try
|
||||||
|
conn.Open()
|
||||||
|
sqlcmd = New MySqlCommand("SELECT `gruppe` FROM `zugriff` where sender_mail = '" & tb_an.Text & "'", conn)
|
||||||
|
dr = sqlcmd.ExecuteScalar()
|
||||||
|
tb_ak_gruppe.Text = dr
|
||||||
|
conn.Close()
|
||||||
|
rtb_log.Text = rtb_log.Text & DateTime.Now & ": Gruppe erfolgreich eingelesen" & vbNewLine
|
||||||
|
rtb_log.ScrollToCaret()
|
||||||
|
Catch ex As System.Exception
|
||||||
|
MsgBox(ex.ToString)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
'sender_mail einlesen
|
||||||
|
Try
|
||||||
|
conn.Open()
|
||||||
|
sqlcmd = New MySqlCommand("SELECT `sender_mail` FROM `zugriff` where sender_mail = '" & tb_an.Text & "'", conn)
|
||||||
|
dr = sqlcmd.ExecuteScalar()
|
||||||
|
tb_sender_mail.Text = dr
|
||||||
|
conn.Close()
|
||||||
|
rtb_log.Text = rtb_log.Text & DateTime.Now & ": Sender Mail Adresse erfolgreich eingelesen" & vbNewLine
|
||||||
|
rtb_log.ScrollToCaret()
|
||||||
|
Catch ex As System.Exception
|
||||||
|
MsgBox(ex.ToString)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
'sender_name einlesen
|
||||||
|
Try
|
||||||
|
conn.Open()
|
||||||
|
sqlcmd = New MySqlCommand("SELECT `sender_name` FROM `zugriff` where sender_mail = '" & tb_an.Text & "'", conn)
|
||||||
|
dr = sqlcmd.ExecuteScalar()
|
||||||
|
tb_sender_name.Text = dr
|
||||||
|
conn.Close()
|
||||||
|
rtb_log.Text = rtb_log.Text & DateTime.Now & ": Sender Name erfolgreich eingelesen" & vbNewLine
|
||||||
|
rtb_log.ScrollToCaret()
|
||||||
|
Catch ex As System.Exception
|
||||||
|
MsgBox(ex.ToString)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
|
||||||
|
If tb_ak_gruppe.Text = "" Then
|
||||||
|
|
||||||
|
' Mail an geschaeftsstelle
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
'MsgBox("Keine Empfänger definiert!")
|
||||||
|
rtb_log.Text = rtb_log.Text & DateTime.Now & ": Keine Empfänger definiert!" & vbNewLine
|
||||||
|
Exit Sub
|
||||||
|
Else
|
||||||
|
|
||||||
|
conn.Open()
|
||||||
|
|
||||||
|
'Regionalforum
|
||||||
|
If tb_ak_gruppe.Text Like "Forum" Then
|
||||||
|
sqlcmd = New MySqlCommand("SELECT `email` FROM `tl_member` where xt_regioforum or xt_moreregio like '%" & tb_ak_gruppe.Text & "%' and DISABLE = ''", conn)
|
||||||
|
|
||||||
|
'Arbeitskreis
|
||||||
|
ElseIf tb_ak_gruppe.Text Like "AK" Then
|
||||||
|
sqlcmd = New MySqlCommand("SELECT `email` FROM `tl_member` where xt_arbeitskre like '%" & tb_ak_gruppe.Text & "%' and DISABLE = ''", conn)
|
||||||
|
|
||||||
|
'Funktionaere
|
||||||
|
ElseIf tb_ak_gruppe.Text Like "Funktionäre" Then
|
||||||
|
sqlcmd = New MySqlCommand("SELECT `email` FROM `funktionaere`", conn)
|
||||||
|
|
||||||
|
'Vorstand
|
||||||
|
ElseIf tb_ak_gruppe.Text Like "Vorstand" Then
|
||||||
|
sqlcmd = New MySqlCommand("SELECT `email` FROM `vorstand`", conn)
|
||||||
|
|
||||||
|
'Mitglieder
|
||||||
|
ElseIf tb_ak_gruppe.Text Like "Mitglieder" Then
|
||||||
|
sqlcmd = New MySqlCommand("select email from newsletter union select email from dvag.tl.member where disable = ''", conn)
|
||||||
|
|
||||||
|
'Test
|
||||||
|
ElseIf tb_ak_gruppe.Text Like "Test" Then
|
||||||
|
sqlcmd = New MySqlCommand("SELECT `email` FROM `test`", conn)
|
||||||
|
|
||||||
|
Else
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
rtb_log.Text = rtb_log.Text & DateTime.Now & ": Empfänger SQL gesetzt" & vbNewLine
|
||||||
|
MsgBox(sqlcmd.ToString)
|
||||||
|
rtb_log.ScrollToCaret()
|
||||||
|
Try
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Dim DataAdapter As New MySqlDataAdapter
|
||||||
|
DataAdapter.SelectCommand = sqlcmd
|
||||||
|
|
||||||
|
Dim chemicalInventory As New DataTable()
|
||||||
|
DataAdapter.Fill(chemicalInventory)
|
||||||
|
|
||||||
|
|
||||||
|
For Each row As DataRow In chemicalInventory.Rows
|
||||||
|
' MsgBox(row.Item("email"))
|
||||||
|
dr = (row.Item("email"))
|
||||||
|
rtb_empfaengergruppe.Text = rtb_empfaengergruppe.Text & dr & vbNewLine
|
||||||
|
Next
|
||||||
|
|
||||||
|
|
||||||
|
Dim last = rtb_empfaengergruppe.Text.LastIndexOf("")
|
||||||
|
If last > 0 Then
|
||||||
|
|
||||||
|
rtb_empfaengergruppe.Text = rtb_empfaengergruppe.Text.Substring(0, last + 1)
|
||||||
|
Dim beforelast = rtb_empfaengergruppe.Text.LastIndexOf("")
|
||||||
|
rtb_empfaengergruppe.Text = rtb_empfaengergruppe.Text.Substring(0, beforelast + 0)
|
||||||
|
|
||||||
|
Else
|
||||||
|
|
||||||
|
'rtb_empfaengergruppe.Text = ""
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
conn.Close()
|
||||||
|
rtb_log.Text = rtb_log.Text & DateTime.Now & ": Empfänger erfolgreich eingelesen" & vbNewLine
|
||||||
|
rtb_log.ScrollToCaret()
|
||||||
|
Catch ex As Exception
|
||||||
|
'MsgBox(ex.ToString)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
If rtb_empfaengergruppe.Text = "" Then rtb_log.Text = rtb_log.Text & DateTime.Now & ": Es wurde keine Mail versendet" & vbNewLine
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Dim tmp As New System.Text.StringBuilder
|
||||||
|
For Each line As String In rtb_empfaengergruppe.Lines
|
||||||
|
If line.Trim.Length > 0 Then tmp.AppendLine(line)
|
||||||
|
Next
|
||||||
|
rtb_empfaengergruppe.Text = tmp.ToString
|
||||||
|
|
||||||
|
|
||||||
|
System.Windows.Forms.Application.DoEvents()
|
||||||
|
save_log()
|
||||||
|
mail_versenden()
|
||||||
|
save_log()
|
||||||
|
update_sql_gesendete_mails()
|
||||||
|
save_log()
|
||||||
|
felder_leeren()
|
||||||
|
save_log()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Public Sub mail_versenden()
|
||||||
|
System.Windows.Forms.Application.DoEvents()
|
||||||
|
If rtb_empfaengergruppe.Text = "" Then Exit Sub
|
||||||
|
|
||||||
|
|
||||||
|
Dim Msg As New MailMessage
|
||||||
|
Dim myCredentials As New System.Net.NetworkCredential
|
||||||
|
myCredentials.UserName = "m.haase"
|
||||||
|
myCredentials.Password = "Start2013!"
|
||||||
|
Msg.IsBodyHtml = True
|
||||||
|
Dim mySmtpsvr As New SmtpClient()
|
||||||
|
mySmtpsvr.Host = "remote.it-professional.biz" 'bei web.de
|
||||||
|
mySmtpsvr.Port = 27
|
||||||
|
mySmtpsvr.EnableSsl = 0
|
||||||
|
mySmtpsvr.UseDefaultCredentials = False
|
||||||
|
mySmtpsvr.Credentials = myCredentials
|
||||||
|
Try
|
||||||
|
'Msg.From = New MailAddress(tb_sender_mail.Text)
|
||||||
|
Msg.From = New MailAddress(tb_sender_mail.Text, tb_sender_name.Text)
|
||||||
|
Dim empfaenger As String = rtb_empfaengergruppe.Text
|
||||||
|
' MsgBox(empfaenger)
|
||||||
|
'MsgBox(empfaenger.Replace(vbLf, ", "))
|
||||||
|
empfaenger = empfaenger.Replace(vbLf, ", ")
|
||||||
|
'MsgBox(empfaenger)
|
||||||
|
empfaenger = (empfaenger.Substring(0, empfaenger.Length - 2))
|
||||||
|
'MsgBox(empfaenger)
|
||||||
|
Msg.Bcc.Add(empfaenger)
|
||||||
|
|
||||||
|
Msg.Subject = tb_betreff.Text
|
||||||
|
Msg.Body = rtb_mail_body.Text
|
||||||
|
|
||||||
|
|
||||||
|
Try
|
||||||
|
|
||||||
|
|
||||||
|
For Each item In My.Computer.FileSystem.GetFiles("C:\DVAG\Mailing\" & lb_id.Text, FileIO.SearchOption.SearchTopLevelOnly, "*.*")
|
||||||
|
'MsgBox(item)
|
||||||
|
Dim myAttch = Msg.Attachments
|
||||||
|
myAttch.Add(New System.Net.Mail.Attachment(item))
|
||||||
|
Next
|
||||||
|
|
||||||
|
Catch ex As System.Exception
|
||||||
|
MsgBox(Err.Number & ex.Message & ex.StackTrace.ToString)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
mySmtpsvr.Send(Msg)
|
||||||
|
rtb_log.Text = rtb_log.Text & DateTime.Now & ": E-Mail gesendet." & vbNewLine
|
||||||
|
rtb_log.Text = rtb_log.Text & DateTime.Now & ": Auftrag für die ID " & lb_id.Text & " erfolgreich abgeschlossen." & vbNewLine
|
||||||
|
Catch ex As Exception
|
||||||
|
MsgBox(Err.Number & ex.Message & ex.StackTrace.ToString) 'Falls ein Fehler auftritt wird eine MsgBox angezeigt
|
||||||
|
Exit Sub
|
||||||
|
End Try
|
||||||
|
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Public Sub felder_leeren()
|
||||||
|
System.Windows.Forms.Application.DoEvents()
|
||||||
|
rtb_empfaengergruppe.Clear()
|
||||||
|
tb_ak_gruppe.Clear()
|
||||||
|
tb_sender_mail.Clear()
|
||||||
|
tb_von.Clear()
|
||||||
|
tb_an.Clear()
|
||||||
|
tb_betreff.Clear()
|
||||||
|
rtb_mail_body.Clear()
|
||||||
|
lb_id.Text = ""
|
||||||
|
|
||||||
|
If My.Settings.mail_auslesen = "1" Then mail_auslesen.Timer_mail_auslesen.Start()
|
||||||
|
mail_auslesen.Show()
|
||||||
|
Me.Hide()
|
||||||
|
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Sub update_sql_gesendete_mails()
|
||||||
|
System.Windows.Forms.Application.DoEvents()
|
||||||
|
Try
|
||||||
|
conn.Open()
|
||||||
|
sqlcmd = New MySqlCommand("update data set `send` = '1', `verarbeitet_am` = '" & DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") & "' where ID = '" & lb_id.Text & "'", conn)
|
||||||
|
dr = sqlcmd.ExecuteScalar()
|
||||||
|
|
||||||
|
conn.Close()
|
||||||
|
rtb_log.Text = rtb_log.Text & DateTime.Now & ": Vorgang als abgeschlossen in der DB markiert" & vbNewLine
|
||||||
|
rtb_log.ScrollToCaret()
|
||||||
|
Catch ex As System.Exception
|
||||||
|
MsgBox(ex.ToString)
|
||||||
|
End Try
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
|
||||||
|
System.Windows.Forms.Application.DoEvents()
|
||||||
|
Dashboard.Show()
|
||||||
|
Me.Hide()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Public Sub save_log()
|
||||||
|
System.Windows.Forms.Application.DoEvents()
|
||||||
|
rtb_log.SaveFile("c:\DVAG\" & DateTime.Now = ("HH__dd_MM_yyyy") & "mail_log.txt", RichTextBoxStreamType.PlainText)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
End Class
|
||||||
12
packages.config
Normal file
12
packages.config
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="chilkat-x64" version="9.5.0.93" targetFramework="net472" />
|
||||||
|
<package id="EAGetMail" version="5.3.0.2" targetFramework="net472" />
|
||||||
|
<package id="Microsoft.Office.Interop.Outlook" version="15.0.4797.1003" targetFramework="net472" />
|
||||||
|
<package id="System.Buffers" version="4.5.1" targetFramework="net472" />
|
||||||
|
<package id="System.Memory" version="4.5.4" targetFramework="net472" />
|
||||||
|
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net472" />
|
||||||
|
<package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net472" />
|
||||||
|
<package id="System.Security.Cryptography.Pkcs" version="6.0.1" targetFramework="net472" />
|
||||||
|
<package id="System.Text.Encoding.CodePages" version="6.0.0" targetFramework="net472" />
|
||||||
|
</packages>
|
||||||
Loading…
x
Reference in New Issue
Block a user