made changes to email

This commit is contained in:
Wyatt Miller 2018-12-08 14:49:17 -05:00
parent 735d92147c
commit 97c5813494
7 changed files with 17 additions and 6 deletions

Binary file not shown.

View File

@ -42,6 +42,14 @@ namespace DeskHubSharp
err.ShowDialog(); err.ShowDialog();
return false; return false;
} }
if (_emailText == "")
{
ErrorWindow err = new ErrorWindow();
err.lbl_title.Content = "Oops.";
err.txtblk_error.Text = "Please fill in your email.";
err.ShowDialog();
return false;
}
return true; return true;
} }
@ -61,7 +69,7 @@ namespace DeskHubSharp
message.Subject = $"{_name} requires your attention!"; message.Subject = $"{_name} requires your attention!";
message.Body = new TextPart("plain") message.Body = new TextPart("plain")
{ {
Text = _message + _emailText Text = _message + " " + _emailText
}; };
using (var client = new SmtpClient()) using (var client = new SmtpClient())

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<ClassDiagram />

View File

@ -155,6 +155,7 @@
<LastGenOutput>Resources.Designer.cs</LastGenOutput> <LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource> </EmbeddedResource>
<None Include="build.cake" /> <None Include="build.cake" />
<None Include="ClassDiagram1.cd" />
<None Include="packages.config" /> <None Include="packages.config" />
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator> <Generator>SettingsSingleFileGenerator</Generator>

View File

@ -4,7 +4,7 @@ namespace DeskHubSharp
{ {
private string _toEmail = "wjmiller2016@gmail.com"; private string _toEmail = "wjmiller2016@gmail.com";
private string _fromEmail = "wjmiller2016@gmail.com"; private string _fromEmail = "wjmiller2016@gmail.com";
private string _passwordEmail = "password"; private string _passwordEmail = "IhaveanAMDRX480";
public string Password public string Password
{ {

View File

@ -4,16 +4,16 @@
winexe winexe
C# C#
.cs .cs
C:\Users\mill1159\Desktop\DeskHubSharp\DeskHubSharp\obj\Debug\ C:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\obj\Debug\
DeskHubSharp DeskHubSharp
none none
false false
DEBUG;TRACE DEBUG;TRACE
C:\Users\mill1159\Desktop\DeskHubSharp\DeskHubSharp\App.xaml C:\Users\Wyatt\Desktop\Source\DeskHubSharp\DeskHubSharp\App.xaml
7-86569338 7-86569338
312052675278 31-1209486194
20-856998346 20415715258
AboutWindow.xaml;DetailWindow.xaml;ErrorWindow.xaml;FeedbackWindow.xaml;HelpWindow.xaml;MainWindow.xaml;SearchWindow.xaml; AboutWindow.xaml;DetailWindow.xaml;ErrorWindow.xaml;FeedbackWindow.xaml;HelpWindow.xaml;MainWindow.xaml;SearchWindow.xaml;
True True