diff --git a/.vs/ProjectEvaluation/scan2email.metadata.v5.2 b/.vs/ProjectEvaluation/scan2email.metadata.v5.2
new file mode 100644
index 0000000..dc2a624
Binary files /dev/null and b/.vs/ProjectEvaluation/scan2email.metadata.v5.2 differ
diff --git a/.vs/ProjectEvaluation/scan2email.projects.v5.2 b/.vs/ProjectEvaluation/scan2email.projects.v5.2
new file mode 100644
index 0000000..3488435
Binary files /dev/null and b/.vs/ProjectEvaluation/scan2email.projects.v5.2 differ
diff --git a/.vs/Scan2Email/DesignTimeBuild/.dtbcache.v2 b/.vs/Scan2Email/DesignTimeBuild/.dtbcache.v2
index 85b8250..7d4b816 100644
Binary files a/.vs/Scan2Email/DesignTimeBuild/.dtbcache.v2 and b/.vs/Scan2Email/DesignTimeBuild/.dtbcache.v2 differ
diff --git a/.vs/Scan2Email/FileContentIndex/06607df3-6dd2-4c34-a979-67a6bc7eaa71.vsidx b/.vs/Scan2Email/FileContentIndex/06607df3-6dd2-4c34-a979-67a6bc7eaa71.vsidx
new file mode 100644
index 0000000..a734945
Binary files /dev/null and b/.vs/Scan2Email/FileContentIndex/06607df3-6dd2-4c34-a979-67a6bc7eaa71.vsidx differ
diff --git a/.vs/Scan2Email/FileContentIndex/2a4d9098-de5c-493e-8756-76edc1ba75e6.vsidx b/.vs/Scan2Email/FileContentIndex/2a4d9098-de5c-493e-8756-76edc1ba75e6.vsidx
deleted file mode 100644
index 9752d0a..0000000
Binary files a/.vs/Scan2Email/FileContentIndex/2a4d9098-de5c-493e-8756-76edc1ba75e6.vsidx and /dev/null differ
diff --git a/.vs/Scan2Email/FileContentIndex/42332c20-77a8-4776-82b0-b1c904043ff3.vsidx b/.vs/Scan2Email/FileContentIndex/42332c20-77a8-4776-82b0-b1c904043ff3.vsidx
new file mode 100644
index 0000000..8091532
Binary files /dev/null and b/.vs/Scan2Email/FileContentIndex/42332c20-77a8-4776-82b0-b1c904043ff3.vsidx differ
diff --git a/.vs/Scan2Email/FileContentIndex/44b6c926-8d18-4a8f-a202-3ffb928eaeb2.vsidx b/.vs/Scan2Email/FileContentIndex/44b6c926-8d18-4a8f-a202-3ffb928eaeb2.vsidx
deleted file mode 100644
index 9e41593..0000000
Binary files a/.vs/Scan2Email/FileContentIndex/44b6c926-8d18-4a8f-a202-3ffb928eaeb2.vsidx and /dev/null differ
diff --git a/.vs/Scan2Email/FileContentIndex/5fbcea9a-4cae-4e2b-87dc-11097c40ce3d.vsidx b/.vs/Scan2Email/FileContentIndex/5fbcea9a-4cae-4e2b-87dc-11097c40ce3d.vsidx
deleted file mode 100644
index 70aef67..0000000
Binary files a/.vs/Scan2Email/FileContentIndex/5fbcea9a-4cae-4e2b-87dc-11097c40ce3d.vsidx and /dev/null differ
diff --git a/.vs/Scan2Email/FileContentIndex/82d74dc1-ab98-4cf2-a990-461b8cd24dc3.vsidx b/.vs/Scan2Email/FileContentIndex/82d74dc1-ab98-4cf2-a990-461b8cd24dc3.vsidx
deleted file mode 100644
index 70aef67..0000000
Binary files a/.vs/Scan2Email/FileContentIndex/82d74dc1-ab98-4cf2-a990-461b8cd24dc3.vsidx and /dev/null differ
diff --git a/.vs/Scan2Email/FileContentIndex/d4f89d98-6f53-4701-be93-c2637301d5f0.vsidx b/.vs/Scan2Email/FileContentIndex/d4f89d98-6f53-4701-be93-c2637301d5f0.vsidx
deleted file mode 100644
index 70aef67..0000000
Binary files a/.vs/Scan2Email/FileContentIndex/d4f89d98-6f53-4701-be93-c2637301d5f0.vsidx and /dev/null differ
diff --git a/.vs/Scan2Email/FileContentIndex/f0f67315-07db-4cc3-ab77-0acd39841d66.vsidx b/.vs/Scan2Email/FileContentIndex/f0f67315-07db-4cc3-ab77-0acd39841d66.vsidx
new file mode 100644
index 0000000..b2cfb6b
Binary files /dev/null and b/.vs/Scan2Email/FileContentIndex/f0f67315-07db-4cc3-ab77-0acd39841d66.vsidx differ
diff --git a/.vs/Scan2Email/FileContentIndex/read.lock b/.vs/Scan2Email/FileContentIndex/read.lock
new file mode 100644
index 0000000..e69de29
diff --git a/.vs/Scan2Email/v17/.futdcache.v2 b/.vs/Scan2Email/v17/.futdcache.v2
index b0b85c7..352033b 100644
Binary files a/.vs/Scan2Email/v17/.futdcache.v2 and b/.vs/Scan2Email/v17/.futdcache.v2 differ
diff --git a/.vs/Scan2Email/v17/.suo b/.vs/Scan2Email/v17/.suo
index 1bd550a..3f9ac79 100644
Binary files a/.vs/Scan2Email/v17/.suo and b/.vs/Scan2Email/v17/.suo differ
diff --git a/SendEmail/Form1.Designer.cs b/SendEmail/Form1.Designer.cs
index a6af068..b9d6e2e 100644
--- a/SendEmail/Form1.Designer.cs
+++ b/SendEmail/Form1.Designer.cs
@@ -37,8 +37,6 @@ namespace SendEmail
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.ConfigMenu = new System.Windows.Forms.ToolStripMenuItem();
this.selectAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -47,6 +45,8 @@ namespace SendEmail
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
this.redoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.undoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.ConfigMenu = new System.Windows.Forms.ToolStripDropDownMenu();
+ this.configToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuStrip1.SuspendLayout();
this.SuspendLayout();
//
@@ -87,8 +87,7 @@ namespace SendEmail
// menuStrip1
//
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.fileToolStripMenuItem,
- this.editToolStripMenuItem});
+ this.fileToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
@@ -100,6 +99,7 @@ namespace SendEmail
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.configToolStripMenuItem,
this.exitToolStripMenuItem});
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
@@ -108,25 +108,10 @@ namespace SendEmail
// exitToolStripMenuItem
//
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
- this.exitToolStripMenuItem.Size = new System.Drawing.Size(92, 22);
+ this.exitToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.exitToolStripMenuItem.Text = "Exit";
this.exitToolStripMenuItem.Click += new System.EventHandler(this.ExitClick);
//
- // editToolStripMenuItem
- //
- this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.ConfigMenu});
- this.editToolStripMenuItem.Name = "editToolStripMenuItem";
- this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20);
- this.editToolStripMenuItem.Text = "Edit";
- //
- // ConfigMenu
- //
- this.ConfigMenu.Name = "ConfigMenu";
- this.ConfigMenu.Size = new System.Drawing.Size(110, 22);
- this.ConfigMenu.Text = "Config";
- this.ConfigMenu.Click += new System.EventHandler(this.ConfigClick);
- //
// selectAllToolStripMenuItem
//
this.selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem";
@@ -181,6 +166,19 @@ namespace SendEmail
this.undoToolStripMenuItem.Size = new System.Drawing.Size(144, 22);
this.undoToolStripMenuItem.Text = "&Undo";
//
+ // ConfigMenu
+ //
+ this.ConfigMenu.AutoClose = false;
+ this.ConfigMenu.Name = "ConfigMenu";
+ this.ConfigMenu.Size = new System.Drawing.Size(61, 4);
+ //
+ // configToolStripMenuItem
+ //
+ this.configToolStripMenuItem.Name = "configToolStripMenuItem";
+ this.configToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
+ this.configToolStripMenuItem.Text = "Config";
+ this.configToolStripMenuItem.Click += new System.EventHandler(this.ConfigClick);
+ //
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
@@ -212,10 +210,6 @@ namespace SendEmail
private System.Windows.Forms.TextBox EmailInput;
private System.Windows.Forms.ToolStripComboBox FileComboBox;
private System.Windows.Forms.MenuStrip menuStrip1;
- private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem ConfigMenu;
private System.Windows.Forms.ToolStripMenuItem selectAllToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
private System.Windows.Forms.ToolStripMenuItem pasteToolStripMenuItem;
@@ -224,6 +218,10 @@ namespace SendEmail
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
private System.Windows.Forms.ToolStripMenuItem redoToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem undoToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
+ private System.Windows.Forms.ToolStripDropDownMenu ConfigMenu;
+ private System.Windows.Forms.ToolStripMenuItem configToolStripMenuItem;
}
}
diff --git a/SendEmail/Form1.resx b/SendEmail/Form1.resx
index 938108a..2e0a947 100644
--- a/SendEmail/Form1.resx
+++ b/SendEmail/Form1.resx
@@ -60,4 +60,7 @@
17, 17
+
+ 132, 17
+
\ No newline at end of file
diff --git a/SendEmail/Form2.Designer.cs b/SendEmail/Form2.Designer.cs
index b67b76a..464ce3b 100644
--- a/SendEmail/Form2.Designer.cs
+++ b/SendEmail/Form2.Designer.cs
@@ -74,7 +74,7 @@ namespace SendEmail
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form2";
- this.Text = "Form2";
+ this.Text = "Authentication";
this.ResumeLayout(false);
this.PerformLayout();
diff --git a/SendEmail/Form2.cs b/SendEmail/Form2.cs
index 7a912bc..36194b3 100644
--- a/SendEmail/Form2.cs
+++ b/SendEmail/Form2.cs
@@ -28,7 +28,7 @@ namespace SendEmail
{
string input = textBox1.Text;
string encryptedInput = Program.Encrypt(input); // Encrypt the user input
- if (encryptedInput == Program.smtp_pass) // If encrypted password is correct
+ if (encryptedInput == Program.config_pass) // If encrypted password is correct
{
this.Hide(); // Hide Form2
var form3 = new Form3(); // Create Form3
diff --git a/SendEmail/Form3.Designer.cs b/SendEmail/Form3.Designer.cs
index 0e04cb5..31efc16 100644
--- a/SendEmail/Form3.Designer.cs
+++ b/SendEmail/Form3.Designer.cs
@@ -29,323 +29,350 @@ namespace SendEmail
///
private void InitializeComponent()
{
- hostTB = new System.Windows.Forms.TextBox();
- label1 = new System.Windows.Forms.Label();
- label2 = new System.Windows.Forms.Label();
- portTB = new System.Windows.Forms.TextBox();
- label3 = new System.Windows.Forms.Label();
- emailTB = new System.Windows.Forms.TextBox();
- label4 = new System.Windows.Forms.Label();
- passwordTB = new System.Windows.Forms.TextBox();
- panel1 = new System.Windows.Forms.Panel();
- label6 = new System.Windows.Forms.Label();
- panel2 = new System.Windows.Forms.Panel();
- label7 = new System.Windows.Forms.Label();
- label8 = new System.Windows.Forms.Label();
- fromTB = new System.Windows.Forms.TextBox();
- label9 = new System.Windows.Forms.Label();
- subjectTB = new System.Windows.Forms.TextBox();
- label10 = new System.Windows.Forms.Label();
- bodyTB = new System.Windows.Forms.TextBox();
- deliveryTB = new System.Windows.Forms.TextBox();
- label11 = new System.Windows.Forms.Label();
- panel3 = new System.Windows.Forms.Panel();
- label15 = new System.Windows.Forms.Label();
- label5 = new System.Windows.Forms.Label();
- extensionsTB = new System.Windows.Forms.TextBox();
- saveBtn = new System.Windows.Forms.Button();
- panel4 = new System.Windows.Forms.Panel();
- infoBox = new System.Windows.Forms.TextBox();
- panel1.SuspendLayout();
- panel2.SuspendLayout();
- panel3.SuspendLayout();
- panel4.SuspendLayout();
- SuspendLayout();
+ this.hostTB = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.portTB = new System.Windows.Forms.TextBox();
+ this.label3 = new System.Windows.Forms.Label();
+ this.emailTB = new System.Windows.Forms.TextBox();
+ this.label4 = new System.Windows.Forms.Label();
+ this.passwordTB = new System.Windows.Forms.TextBox();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.showSMTPPassBtn = new System.Windows.Forms.Button();
+ this.label6 = new System.Windows.Forms.Label();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.label7 = new System.Windows.Forms.Label();
+ this.fromTB = new System.Windows.Forms.TextBox();
+ this.label9 = new System.Windows.Forms.Label();
+ this.subjectTB = new System.Windows.Forms.TextBox();
+ this.label10 = new System.Windows.Forms.Label();
+ this.bodyTB = new System.Windows.Forms.TextBox();
+ this.label11 = new System.Windows.Forms.Label();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.showConfigPassBtn = new System.Windows.Forms.Button();
+ this.label12 = new System.Windows.Forms.Label();
+ this.configPasswordTB = new System.Windows.Forms.TextBox();
+ this.label15 = new System.Windows.Forms.Label();
+ this.label5 = new System.Windows.Forms.Label();
+ this.extensionsTB = new System.Windows.Forms.TextBox();
+ this.saveBtn = new System.Windows.Forms.Button();
+ this.panel4 = new System.Windows.Forms.Panel();
+ this.infoBox = new System.Windows.Forms.TextBox();
+ this.panel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ this.panel3.SuspendLayout();
+ this.panel4.SuspendLayout();
+ this.SuspendLayout();
//
// hostTB
//
- hostTB.Location = new System.Drawing.Point(71, 32);
- hostTB.Name = "hostTB";
- hostTB.Size = new System.Drawing.Size(431, 23);
- hostTB.TabIndex = 0;
- hostTB.MouseEnter += HoverInfo;
+ this.hostTB.Location = new System.Drawing.Point(71, 32);
+ this.hostTB.Name = "hostTB";
+ this.hostTB.Size = new System.Drawing.Size(431, 23);
+ this.hostTB.TabIndex = 0;
+ this.hostTB.MouseEnter += new System.EventHandler(this.HoverInfo);
//
// label1
//
- label1.AutoSize = true;
- label1.Location = new System.Drawing.Point(26, 35);
- label1.Name = "label1";
- label1.Size = new System.Drawing.Size(32, 15);
- label1.TabIndex = 1;
- label1.Text = "Host";
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(26, 35);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(32, 15);
+ this.label1.TabIndex = 1;
+ this.label1.Text = "Host";
//
// label2
//
- label2.AutoSize = true;
- label2.Location = new System.Drawing.Point(29, 64);
- label2.Name = "label2";
- label2.Size = new System.Drawing.Size(29, 15);
- label2.TabIndex = 3;
- label2.Text = "Port";
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(29, 64);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(29, 15);
+ this.label2.TabIndex = 3;
+ this.label2.Text = "Port";
//
// portTB
//
- portTB.Location = new System.Drawing.Point(71, 61);
- portTB.Name = "portTB";
- portTB.Size = new System.Drawing.Size(431, 23);
- portTB.TabIndex = 2;
- portTB.MouseEnter += HoverInfo;
+ this.portTB.Location = new System.Drawing.Point(71, 61);
+ this.portTB.Name = "portTB";
+ this.portTB.Size = new System.Drawing.Size(431, 23);
+ this.portTB.TabIndex = 2;
+ this.portTB.MouseEnter += new System.EventHandler(this.HoverInfo);
//
// label3
//
- label3.AutoSize = true;
- label3.Location = new System.Drawing.Point(22, 93);
- label3.Name = "label3";
- label3.Size = new System.Drawing.Size(36, 15);
- label3.TabIndex = 5;
- label3.Text = "Email";
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(22, 93);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(36, 15);
+ this.label3.TabIndex = 5;
+ this.label3.Text = "Email";
//
// emailTB
//
- emailTB.Location = new System.Drawing.Point(71, 90);
- emailTB.Name = "emailTB";
- emailTB.Size = new System.Drawing.Size(431, 23);
- emailTB.TabIndex = 4;
- emailTB.MouseEnter += HoverInfo;
+ this.emailTB.Location = new System.Drawing.Point(71, 90);
+ this.emailTB.Name = "emailTB";
+ this.emailTB.Size = new System.Drawing.Size(431, 23);
+ this.emailTB.TabIndex = 4;
+ this.emailTB.MouseEnter += new System.EventHandler(this.HoverInfo);
//
// label4
//
- label4.AutoSize = true;
- label4.Location = new System.Drawing.Point(1, 122);
- label4.Name = "label4";
- label4.Size = new System.Drawing.Size(57, 15);
- label4.TabIndex = 7;
- label4.Text = "Password";
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(1, 122);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(57, 15);
+ this.label4.TabIndex = 7;
+ this.label4.Text = "Password";
//
// passwordTB
//
- passwordTB.Location = new System.Drawing.Point(71, 119);
- passwordTB.Name = "passwordTB";
- passwordTB.Size = new System.Drawing.Size(431, 23);
- passwordTB.TabIndex = 6;
- passwordTB.MouseEnter += HoverInfo;
+ this.passwordTB.Location = new System.Drawing.Point(71, 119);
+ this.passwordTB.Name = "passwordTB";
+ this.passwordTB.PasswordChar = '●';
+ this.passwordTB.Size = new System.Drawing.Size(357, 23);
+ this.passwordTB.TabIndex = 6;
+ this.passwordTB.MouseEnter += new System.EventHandler(this.HoverInfo);
//
// panel1
//
- panel1.BackColor = System.Drawing.SystemColors.ControlLight;
- panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- panel1.Controls.Add(label6);
- panel1.Controls.Add(label4);
- panel1.Controls.Add(hostTB);
- panel1.Controls.Add(label1);
- panel1.Controls.Add(portTB);
- panel1.Controls.Add(label2);
- panel1.Controls.Add(emailTB);
- panel1.Controls.Add(passwordTB);
- panel1.Controls.Add(label3);
- panel1.Location = new System.Drawing.Point(12, 13);
- panel1.Name = "panel1";
- panel1.Size = new System.Drawing.Size(521, 155);
- panel1.TabIndex = 11;
+ this.panel1.BackColor = System.Drawing.SystemColors.ControlLight;
+ this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel1.Controls.Add(this.showSMTPPassBtn);
+ this.panel1.Controls.Add(this.label6);
+ this.panel1.Controls.Add(this.label4);
+ this.panel1.Controls.Add(this.hostTB);
+ this.panel1.Controls.Add(this.label1);
+ this.panel1.Controls.Add(this.portTB);
+ this.panel1.Controls.Add(this.label2);
+ this.panel1.Controls.Add(this.emailTB);
+ this.panel1.Controls.Add(this.passwordTB);
+ this.panel1.Controls.Add(this.label3);
+ this.panel1.Location = new System.Drawing.Point(12, 13);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(521, 155);
+ this.panel1.TabIndex = 11;
+ //
+ // showSMTPPassBtn
+ //
+ this.showSMTPPassBtn.Location = new System.Drawing.Point(434, 119);
+ this.showSMTPPassBtn.Name = "showSMTPPassBtn";
+ this.showSMTPPassBtn.Size = new System.Drawing.Size(68, 23);
+ this.showSMTPPassBtn.TabIndex = 18;
+ this.showSMTPPassBtn.Text = "Show";
+ this.showSMTPPassBtn.UseVisualStyleBackColor = true;
+ this.showSMTPPassBtn.Click += new System.EventHandler(this.toggleShowSMTP);
//
// label6
//
- label6.AutoSize = true;
- label6.Font = new System.Drawing.Font("Segoe UI", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- label6.Location = new System.Drawing.Point(3, 4);
- label6.Name = "label6";
- label6.Size = new System.Drawing.Size(132, 25);
- label6.TabIndex = 0;
- label6.Text = "SMTP Settings";
+ this.label6.AutoSize = true;
+ this.label6.Font = new System.Drawing.Font("Segoe UI", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.label6.Location = new System.Drawing.Point(3, 4);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(132, 25);
+ this.label6.TabIndex = 0;
+ this.label6.Text = "SMTP Settings";
//
// panel2
//
- panel2.BackColor = System.Drawing.SystemColors.ControlLight;
- panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- panel2.Controls.Add(label7);
- panel2.Controls.Add(label8);
- panel2.Controls.Add(fromTB);
- panel2.Controls.Add(label9);
- panel2.Controls.Add(subjectTB);
- panel2.Controls.Add(label10);
- panel2.Controls.Add(bodyTB);
- panel2.Controls.Add(deliveryTB);
- panel2.Controls.Add(label11);
- panel2.Location = new System.Drawing.Point(12, 174);
- panel2.Name = "panel2";
- panel2.Size = new System.Drawing.Size(521, 155);
- panel2.TabIndex = 12;
+ this.panel2.BackColor = System.Drawing.SystemColors.ControlLight;
+ this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel2.Controls.Add(this.label7);
+ this.panel2.Controls.Add(this.fromTB);
+ this.panel2.Controls.Add(this.label9);
+ this.panel2.Controls.Add(this.subjectTB);
+ this.panel2.Controls.Add(this.label10);
+ this.panel2.Controls.Add(this.bodyTB);
+ this.panel2.Controls.Add(this.label11);
+ this.panel2.Location = new System.Drawing.Point(12, 174);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(521, 122);
+ this.panel2.TabIndex = 12;
//
// label7
//
- label7.AutoSize = true;
- label7.Font = new System.Drawing.Font("Segoe UI", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- label7.Location = new System.Drawing.Point(3, 4);
- label7.Name = "label7";
- label7.Size = new System.Drawing.Size(121, 25);
- label7.TabIndex = 0;
- label7.Text = "Mail Settings";
- //
- // label8
- //
- label8.AutoSize = true;
- label8.Location = new System.Drawing.Point(9, 122);
- label8.Name = "label8";
- label8.Size = new System.Drawing.Size(49, 15);
- label8.TabIndex = 7;
- label8.Text = "Delivery";
+ this.label7.AutoSize = true;
+ this.label7.Font = new System.Drawing.Font("Segoe UI", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.label7.Location = new System.Drawing.Point(3, 4);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(121, 25);
+ this.label7.TabIndex = 0;
+ this.label7.Text = "Mail Settings";
//
// fromTB
//
- fromTB.Location = new System.Drawing.Point(71, 32);
- fromTB.Name = "fromTB";
- fromTB.Size = new System.Drawing.Size(431, 23);
- fromTB.TabIndex = 0;
- fromTB.MouseEnter += HoverInfo;
+ this.fromTB.Location = new System.Drawing.Point(71, 32);
+ this.fromTB.Name = "fromTB";
+ this.fromTB.Size = new System.Drawing.Size(431, 23);
+ this.fromTB.TabIndex = 0;
+ this.fromTB.MouseEnter += new System.EventHandler(this.HoverInfo);
//
// label9
//
- label9.AutoSize = true;
- label9.Location = new System.Drawing.Point(23, 35);
- label9.Name = "label9";
- label9.Size = new System.Drawing.Size(35, 15);
- label9.TabIndex = 1;
- label9.Text = "From";
+ this.label9.AutoSize = true;
+ this.label9.Location = new System.Drawing.Point(23, 35);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(35, 15);
+ this.label9.TabIndex = 1;
+ this.label9.Text = "From";
//
// subjectTB
//
- subjectTB.Location = new System.Drawing.Point(71, 61);
- subjectTB.Name = "subjectTB";
- subjectTB.Size = new System.Drawing.Size(431, 23);
- subjectTB.TabIndex = 2;
- subjectTB.MouseEnter += HoverInfo;
+ this.subjectTB.Location = new System.Drawing.Point(71, 61);
+ this.subjectTB.Name = "subjectTB";
+ this.subjectTB.Size = new System.Drawing.Size(431, 23);
+ this.subjectTB.TabIndex = 2;
+ this.subjectTB.MouseEnter += new System.EventHandler(this.HoverInfo);
//
// label10
//
- label10.AutoSize = true;
- label10.Location = new System.Drawing.Point(12, 64);
- label10.Name = "label10";
- label10.Size = new System.Drawing.Size(46, 15);
- label10.TabIndex = 3;
- label10.Text = "Subject";
+ this.label10.AutoSize = true;
+ this.label10.Location = new System.Drawing.Point(12, 64);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(46, 15);
+ this.label10.TabIndex = 3;
+ this.label10.Text = "Subject";
//
// bodyTB
//
- bodyTB.Location = new System.Drawing.Point(71, 90);
- bodyTB.Name = "bodyTB";
- bodyTB.Size = new System.Drawing.Size(431, 23);
- bodyTB.TabIndex = 4;
- bodyTB.MouseEnter += HoverInfo;
- //
- // deliveryTB
- //
- deliveryTB.Location = new System.Drawing.Point(71, 119);
- deliveryTB.Name = "deliveryTB";
- deliveryTB.Size = new System.Drawing.Size(431, 23);
- deliveryTB.TabIndex = 6;
- deliveryTB.MouseEnter += HoverInfo;
+ this.bodyTB.Location = new System.Drawing.Point(71, 90);
+ this.bodyTB.Name = "bodyTB";
+ this.bodyTB.Size = new System.Drawing.Size(431, 23);
+ this.bodyTB.TabIndex = 4;
+ this.bodyTB.MouseEnter += new System.EventHandler(this.HoverInfo);
//
// label11
//
- label11.AutoSize = true;
- label11.Location = new System.Drawing.Point(24, 93);
- label11.Name = "label11";
- label11.Size = new System.Drawing.Size(34, 15);
- label11.TabIndex = 5;
- label11.Text = "Body";
+ this.label11.AutoSize = true;
+ this.label11.Location = new System.Drawing.Point(24, 93);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(34, 15);
+ this.label11.TabIndex = 5;
+ this.label11.Text = "Body";
//
// panel3
//
- panel3.BackColor = System.Drawing.SystemColors.ControlLight;
- panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- panel3.Controls.Add(label15);
- panel3.Controls.Add(label5);
- panel3.Controls.Add(extensionsTB);
- panel3.Location = new System.Drawing.Point(12, 335);
- panel3.Name = "panel3";
- panel3.Size = new System.Drawing.Size(521, 155);
- panel3.TabIndex = 13;
+ this.panel3.BackColor = System.Drawing.SystemColors.ControlLight;
+ this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel3.Controls.Add(this.showConfigPassBtn);
+ this.panel3.Controls.Add(this.label12);
+ this.panel3.Controls.Add(this.configPasswordTB);
+ this.panel3.Controls.Add(this.label15);
+ this.panel3.Controls.Add(this.label5);
+ this.panel3.Controls.Add(this.extensionsTB);
+ this.panel3.Location = new System.Drawing.Point(12, 302);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(521, 95);
+ this.panel3.TabIndex = 13;
+ //
+ // showConfigPassBtn
+ //
+ this.showConfigPassBtn.Location = new System.Drawing.Point(434, 59);
+ this.showConfigPassBtn.Name = "showConfigPassBtn";
+ this.showConfigPassBtn.Size = new System.Drawing.Size(68, 23);
+ this.showConfigPassBtn.TabIndex = 17;
+ this.showConfigPassBtn.Text = "Show";
+ this.showConfigPassBtn.UseVisualStyleBackColor = true;
+ this.showConfigPassBtn.Click += new System.EventHandler(this.toggleShowConfig);
+ //
+ // label12
+ //
+ this.label12.AutoSize = true;
+ this.label12.Location = new System.Drawing.Point(1, 63);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(64, 15);
+ this.label12.TabIndex = 9;
+ this.label12.Text = "Config PW";
+ //
+ // configPasswordTB
+ //
+ this.configPasswordTB.Location = new System.Drawing.Point(71, 60);
+ this.configPasswordTB.Name = "configPasswordTB";
+ this.configPasswordTB.PasswordChar = '●';
+ this.configPasswordTB.Size = new System.Drawing.Size(357, 23);
+ this.configPasswordTB.TabIndex = 8;
+ this.configPasswordTB.MouseEnter += new System.EventHandler(this.HoverInfo);
//
// label15
//
- label15.AutoSize = true;
- label15.Location = new System.Drawing.Point(3, 35);
- label15.Name = "label15";
- label15.Size = new System.Drawing.Size(63, 15);
- label15.TabIndex = 7;
- label15.Text = "Extensions";
+ this.label15.AutoSize = true;
+ this.label15.Location = new System.Drawing.Point(3, 35);
+ this.label15.Name = "label15";
+ this.label15.Size = new System.Drawing.Size(62, 15);
+ this.label15.TabIndex = 7;
+ this.label15.Text = "Extensions";
//
// label5
//
- label5.AutoSize = true;
- label5.Font = new System.Drawing.Font("Segoe UI", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- label5.Location = new System.Drawing.Point(3, 4);
- label5.Name = "label5";
- label5.Size = new System.Drawing.Size(150, 25);
- label5.TabIndex = 0;
- label5.Text = "General Settings";
+ this.label5.AutoSize = true;
+ this.label5.Font = new System.Drawing.Font("Segoe UI", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.label5.Location = new System.Drawing.Point(3, 4);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(150, 25);
+ this.label5.TabIndex = 0;
+ this.label5.Text = "General Settings";
//
// extensionsTB
//
- extensionsTB.Location = new System.Drawing.Point(71, 32);
- extensionsTB.Name = "extensionsTB";
- extensionsTB.Size = new System.Drawing.Size(431, 23);
- extensionsTB.TabIndex = 2;
- extensionsTB.MouseEnter += HoverInfo;
+ this.extensionsTB.Location = new System.Drawing.Point(71, 32);
+ this.extensionsTB.Name = "extensionsTB";
+ this.extensionsTB.Size = new System.Drawing.Size(431, 23);
+ this.extensionsTB.TabIndex = 2;
+ this.extensionsTB.MouseEnter += new System.EventHandler(this.HoverInfo);
//
// saveBtn
//
- saveBtn.Location = new System.Drawing.Point(12, 497);
- saveBtn.Name = "saveBtn";
- saveBtn.Size = new System.Drawing.Size(521, 23);
- saveBtn.TabIndex = 14;
- saveBtn.Text = "Save";
- saveBtn.UseVisualStyleBackColor = true;
- saveBtn.Click += SaveConfig;
+ this.saveBtn.Location = new System.Drawing.Point(12, 403);
+ this.saveBtn.Name = "saveBtn";
+ this.saveBtn.Size = new System.Drawing.Size(521, 23);
+ this.saveBtn.TabIndex = 14;
+ this.saveBtn.Text = "Save";
+ this.saveBtn.UseVisualStyleBackColor = true;
+ this.saveBtn.Click += new System.EventHandler(this.SaveConfig);
//
// panel4
//
- panel4.BackColor = System.Drawing.SystemColors.ControlLight;
- panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- panel4.Controls.Add(infoBox);
- panel4.Location = new System.Drawing.Point(540, 13);
- panel4.Name = "panel4";
- panel4.Size = new System.Drawing.Size(171, 507);
- panel4.TabIndex = 15;
+ this.panel4.BackColor = System.Drawing.SystemColors.ControlLight;
+ this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel4.Controls.Add(this.infoBox);
+ this.panel4.Location = new System.Drawing.Point(540, 13);
+ this.panel4.Name = "panel4";
+ this.panel4.Size = new System.Drawing.Size(171, 413);
+ this.panel4.TabIndex = 15;
//
// infoBox
//
- infoBox.Location = new System.Drawing.Point(4, 5);
- infoBox.Multiline = true;
- infoBox.Name = "infoBox";
- infoBox.ReadOnly = true;
- infoBox.Size = new System.Drawing.Size(162, 497);
- infoBox.TabIndex = 0;
+ this.infoBox.Location = new System.Drawing.Point(3, 3);
+ this.infoBox.Multiline = true;
+ this.infoBox.Name = "infoBox";
+ this.infoBox.ReadOnly = true;
+ this.infoBox.Size = new System.Drawing.Size(163, 405);
+ this.infoBox.TabIndex = 0;
//
// Form3
//
- AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
- AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- ClientSize = new System.Drawing.Size(723, 546);
- Controls.Add(panel4);
- Controls.Add(saveBtn);
- Controls.Add(panel3);
- Controls.Add(panel2);
- Controls.Add(panel1);
- FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
- MaximizeBox = false;
- MinimizeBox = false;
- Name = "Form3";
- Text = "Form3";
- panel1.ResumeLayout(false);
- panel1.PerformLayout();
- panel2.ResumeLayout(false);
- panel2.PerformLayout();
- panel3.ResumeLayout(false);
- panel3.PerformLayout();
- panel4.ResumeLayout(false);
- panel4.PerformLayout();
- ResumeLayout(false);
+ this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(723, 440);
+ this.Controls.Add(this.panel4);
+ this.Controls.Add(this.saveBtn);
+ this.Controls.Add(this.panel3);
+ this.Controls.Add(this.panel2);
+ this.Controls.Add(this.panel1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "Form3";
+ this.Text = "Send2Email Settings";
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ this.panel3.ResumeLayout(false);
+ this.panel3.PerformLayout();
+ this.panel4.ResumeLayout(false);
+ this.panel4.PerformLayout();
+ this.ResumeLayout(false);
+
}
#endregion
@@ -362,13 +389,11 @@ namespace SendEmail
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Label label7;
- private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox fromTB;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.TextBox subjectTB;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox bodyTB;
- private System.Windows.Forms.TextBox deliveryTB;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Label label5;
@@ -377,5 +402,9 @@ namespace SendEmail
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.TextBox infoBox;
+ private System.Windows.Forms.Label label12;
+ private System.Windows.Forms.TextBox configPasswordTB;
+ private System.Windows.Forms.Button showSMTPPassBtn;
+ private System.Windows.Forms.Button showConfigPassBtn;
}
}
\ No newline at end of file
diff --git a/SendEmail/Form3.cs b/SendEmail/Form3.cs
index 9e29c8f..868616a 100644
--- a/SendEmail/Form3.cs
+++ b/SendEmail/Form3.cs
@@ -1,15 +1,7 @@
using Newtonsoft.Json;
using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
using System.IO;
-using System.Text;
using System.Windows.Forms;
-using Newtonsoft.Json.Linq;
-using System.Linq;
-using System.Security.Cryptography;
namespace SendEmail
{
@@ -19,6 +11,9 @@ namespace SendEmail
* Form3 is the configuration window for Send2Email
*/
+ public bool showingSMTPPass = false;
+ public bool showingConfigPass = false;
+
#region UI
// Default info in the info textbox
@@ -48,7 +43,8 @@ namespace SendEmail
fromTB.Text = Program.mail_from;
subjectTB.Text = Program.mail_subject;
bodyTB.Text = Program.mail_body;
- deliveryTB.Text = Program.mail_delivery;
+
+ configPasswordTB.Text = Program.Decrypt(Program.config_pass); // Decrypt password for display
extensionsTB.Text = Program.file_extensions;
}
@@ -58,6 +54,7 @@ namespace SendEmail
{
TextBox holder = (TextBox)sender; // Hold onto the sender event that triggered HoverInfo()
string holdName = holder.Name; // Get the name of the sender that triggered HoverInfo()
+
string output;
switch (holdName) // Switch through the possible input fields and sets the output to the correct values
@@ -83,12 +80,12 @@ namespace SendEmail
case "bodyTB":
output = "Mail Body: This is what will be put into the body of the email";
break;
- case "deliveryTB":
- output = "Mail Delivery: is the message that will appear on screen once the user has successfully emailed themselves";
- break;
case "extensionsTB":
output = "File Extensions: This determines the types of files that will be scraped from the Pictures folder.\r\nSeparate each entry with a comma, you do not need to include the period for any extensions.\r\nDefaults: jpg, jpeg, png, gif, bmp, tif, pdf";
break;
+ case "configPasswordTB":
+ output = "Config Password: The password to access the settings.";
+ break;
default:
output = defaultInfo;
break;
@@ -97,6 +94,23 @@ namespace SendEmail
SetInfoBox(output); // Send the output text to the info textbox
}
+ public bool toggleHiddenPW(bool isShowing, TextBox passTextBox)
+ {
+ isShowing = !isShowing; // Toggle the boolean value
+ passTextBox.PasswordChar = isShowing ? '\0' : '●'; // Set ● when enabled, empty when disabled
+ return isShowing; // Return updated value
+ }
+
+ public void toggleShowConfig(object sender, EventArgs e)
+ {
+ showingConfigPass = toggleHiddenPW(showingConfigPass, configPasswordTB);
+ }
+
+ private void toggleShowSMTP(object sender, EventArgs e)
+ {
+ showingSMTPPass = toggleHiddenPW(showingSMTPPass, passwordTB);
+ }
+
#endregion
#region Save/Load Configuration
@@ -107,21 +121,21 @@ namespace SendEmail
string cfg_host = hostTB.Text;
string string_cfg_port = portTB.Text;
string cfg_user = emailTB.Text;
- string cfg_pass = Program.Encrypt(passwordTB.Text); // Encrypt the password
+ string cfg_pass = Program.Encrypt(passwordTB.Text); // Encrypt the SMTP password
string cfg_from = fromTB.Text;
string cfg_subject = subjectTB.Text;
string cfg_body = bodyTB.Text;
- string cfg_delivery = deliveryTB.Text;
string cfg_extensions = extensionsTB.Text;
+ string cfg_config_pass = Program.Encrypt(configPasswordTB.Text); // Encrypt the config password
int cfg_port = Int32.Parse(string_cfg_port);
string cfg_public_key = Program.key_public; // Get public key
// Create a JSON object with the configuration data
- Config cfg = new Config(cfg_host, cfg_port, cfg_user, cfg_pass, cfg_from, cfg_subject, cfg_body, cfg_delivery, cfg_extensions, cfg_public_key);
+ Config cfg = new Config(cfg_host, cfg_port, cfg_user, cfg_pass, cfg_from, cfg_subject, cfg_body, cfg_extensions, cfg_config_pass, cfg_public_key);
// Serialize the JSON data so it can be written to a text file
string[] json = { JsonConvert.SerializeObject(cfg, Formatting.Indented) };
@@ -134,6 +148,7 @@ namespace SendEmail
var form1 = new Form1();
form1.Closed += (s, args) => this.Close();
form1.Show();
+ LoadConfig(); //Load the new config so that we process any updates the user made.
}
public static bool LoadConfig() // Boolean method, returns true or false to whatever called LoadConfig
@@ -183,7 +198,8 @@ namespace SendEmail
Program.mail_from = config.Mail_From;
Program.mail_body = config.Mail_Body;
Program.mail_subject = config.Mail_Subject;
- Program.mail_delivery = config.Mail_Delivery;
+
+ Program.config_pass = config.Config_Pass;
Program.file_extensions = config.File_Extensions;
Program.key_public = config.Key_Public; // Load public key
@@ -251,16 +267,14 @@ namespace SendEmail
public int SMTP_Port { get; set; }
public string SMTP_User { get; set; }
public string SMTP_Pass { get; set; }
-
public string Mail_From { get; set; }
public string Mail_Subject { get; set; }
public string Mail_Body { get; set; }
- public string Mail_Delivery { get; set; }
-
+ public string Config_Pass { get; set; }
public string File_Extensions { get; set; }
public string Key_Public { get; set; } // New property
- public Config(string smtp_host, int smtp_port, string smtp_user, string smtp_pass, string mail_from, string mail_subject, string mail_body, string mail_delivery, string file_extensions, string key_public)
+ public Config(string smtp_host, int smtp_port, string smtp_user, string smtp_pass, string mail_from, string mail_subject, string mail_body, string file_extensions, string config_pass, string key_public)
{
SMTP_Host = smtp_host;
SMTP_Port = smtp_port;
@@ -270,19 +284,14 @@ namespace SendEmail
Mail_From = mail_from;
Mail_Subject = mail_subject;
Mail_Body = mail_body;
- Mail_Delivery = mail_delivery;
File_Extensions = file_extensions;
+ Config_Pass = config_pass;
Key_Public = key_public; // New property
}
}
#endregion
#endregion
-
- private void textBox1_TextChanged(object sender, EventArgs e)
- {
-
- }
}
}
diff --git a/SendEmail/Form3.resx b/SendEmail/Form3.resx
index af32865..f298a7b 100644
--- a/SendEmail/Form3.resx
+++ b/SendEmail/Form3.resx
@@ -1,64 +1,4 @@
-
-
-
+
diff --git a/SendEmail/Program.cs b/SendEmail/Program.cs
index 5b7fc40..a39c80e 100644
--- a/SendEmail/Program.cs
+++ b/SendEmail/Program.cs
@@ -32,8 +32,8 @@ namespace SendEmail
public static string mail_from;
public static string mail_subject;
public static string mail_body;
- public static string mail_delivery;
public static string file_extensions;
+ public static string config_pass;
// Encryption keys (8 bytes for DES)
public static string key_secret = "8byteKey";
@@ -52,7 +52,7 @@ namespace SendEmail
bool cont = Form3.LoadConfig(); // Load Configuration method
if (cont) // If Config exists
{
- if (string.IsNullOrEmpty(smtp_pass)) // Check if password is empty
+ if (string.IsNullOrEmpty(config_pass)) // Check if password is empty
{
// Run first time setup
Application.Run(new Form3());
@@ -259,11 +259,11 @@ namespace SendEmail
mail.Attachments.Add(attachment); // Attach the new attachment to the email
}
- SmtpServer.Credentials = new System.Net.NetworkCredential(smtp_user, smtp_pass); // Login to SMTP
+ SmtpServer.Credentials = new System.Net.NetworkCredential(smtp_user, Program.Decrypt(smtp_pass)); // Login to SMTP
SmtpServer.EnableSsl = true; // Use SSL Encryption
SmtpServer.Send(mail); // Send our mail variable
- MessageBox.Show(mail_delivery + sendTo); // Popup informs user where the email was sent
+ MessageBox.Show("Your scans have been sent to " + sendTo); // Popup informs user where the email was sent
}
catch (Exception ex) // If the Try fails the catch will output this error message.
{
diff --git a/SendEmail/Properties/Resources.Designer.cs b/SendEmail/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..b051584
--- /dev/null
+++ b/SendEmail/Properties/Resources.Designer.cs
@@ -0,0 +1,63 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+namespace Scan2Email.Properties {
+ using System;
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // 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.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Scan2Email.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/SendEmail/Properties/Resources.resx b/SendEmail/Properties/Resources.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/SendEmail/Properties/Resources.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/SendEmail/Scan2Email.csproj b/SendEmail/Scan2Email.csproj
index 2ad854c..3833c6c 100644
--- a/SendEmail/Scan2Email.csproj
+++ b/SendEmail/Scan2Email.csproj
@@ -15,4 +15,25 @@
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
+
+
+ PreserveNewest
+
+
+
\ No newline at end of file
diff --git a/SendEmail/Scan2Email.csproj.user b/SendEmail/Scan2Email.csproj.user
index 0b9c102..b9cd458 100644
--- a/SendEmail/Scan2Email.csproj.user
+++ b/SendEmail/Scan2Email.csproj.user
@@ -15,4 +15,9 @@
Form
+
+
+ Designer
+
+
\ No newline at end of file
diff --git a/SendEmail/example.cfg.json b/SendEmail/example.cfg.json
index f657ee9..a65b0a1 100644
--- a/SendEmail/example.cfg.json
+++ b/SendEmail/example.cfg.json
@@ -6,7 +6,7 @@
"Mail_From": "email@company.com",
"Mail_Subject": "Mail Subject Text",
"Mail_Body": "Mail Body Text",
- "Mail_Delivery": "Mail Delivery Text + {destination_email}",
+ "Config_Pass": "",
"File_Extensions": "jpg, jpeg, png, gif, bmp, tif, pdf",
"Key_Public": "byte8Key"
}
\ No newline at end of file