diff --git a/.gitignore b/.gitignore index 1c6b354..1e505fa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +Email HTML Template/Template/WebRoot + ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. diff --git a/Email HTML Template/EmailSendTester/EmailSendTester.csproj b/Email HTML Template/EmailSendTester/EmailSendTester.csproj new file mode 100644 index 0000000..ce1697a --- /dev/null +++ b/Email HTML Template/EmailSendTester/EmailSendTester.csproj @@ -0,0 +1,8 @@ + + + + Exe + netcoreapp2.0 + + + diff --git a/Email HTML Template/EmailSendTester/EmailSendTester.sln b/Email HTML Template/EmailSendTester/EmailSendTester.sln new file mode 100644 index 0000000..557083b --- /dev/null +++ b/Email HTML Template/EmailSendTester/EmailSendTester.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27428.2037 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EmailSendTester", "EmailSendTester.csproj", "{916EE023-523E-473C-BF2E-871CABE9B6B6}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {916EE023-523E-473C-BF2E-871CABE9B6B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {916EE023-523E-473C-BF2E-871CABE9B6B6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {916EE023-523E-473C-BF2E-871CABE9B6B6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {916EE023-523E-473C-BF2E-871CABE9B6B6}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {FF87D8A7-89B5-416D-9948-F322202220AD} + EndGlobalSection +EndGlobal diff --git a/Email HTML Template/EmailSendTester/Program.cs b/Email HTML Template/EmailSendTester/Program.cs new file mode 100644 index 0000000..55d9a63 --- /dev/null +++ b/Email HTML Template/EmailSendTester/Program.cs @@ -0,0 +1,31 @@ +using System; +using System.IO; +using System.Net; +using System.Net.Mail; + +namespace EmailSendTester +{ + class Program + { + static void Main(string[] args) + { + Console.WriteLine("Hello World!"); + + var username = "noreply@fasetto.com"; + var password = "somepassword"; + + var msg = new MailMessage("noreply@fasetto.com", "contact@angelsix.com"); + + msg.Subject = "Verify Your Account"; + msg.Body = File.ReadAllText(@"C:\Users\Luke\Desktop\Email\emailtest.txt"); + msg.IsBodyHtml = true; + + var smtpClient = new SmtpClient(); + smtpClient.Credentials = new NetworkCredential(username, password); + smtpClient.Host = "smtp.office365.com"; + smtpClient.Port = 587; + smtpClient.EnableSsl = true; + smtpClient.Send(msg); + } + } +} diff --git a/Email HTML Template/Resources/email-template.png b/Email HTML Template/Resources/email-template.png new file mode 100644 index 0000000..f3e2707 Binary files /dev/null and b/Email HTML Template/Resources/email-template.png differ diff --git a/Email HTML Template/Template/Source/Assets/Images/logo-small.png b/Email HTML Template/Template/Source/Assets/Images/logo-small.png new file mode 100644 index 0000000..f5337bf Binary files /dev/null and b/Email HTML Template/Template/Source/Assets/Images/logo-small.png differ diff --git a/Email HTML Template/Template/Source/Assets/Images/text-logo.png b/Email HTML Template/Template/Source/Assets/Images/text-logo.png new file mode 100644 index 0000000..cdcce71 Binary files /dev/null and b/Email HTML Template/Template/Source/Assets/Images/text-logo.png differ diff --git a/Email HTML Template/Template/Source/Html/_footer.dhtml b/Email HTML Template/Template/Source/Html/_footer.dhtml new file mode 100644 index 0000000..b317cc2 --- /dev/null +++ b/Email HTML Template/Template/Source/Html/_footer.dhtml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Email HTML Template/Template/Source/Html/_header.dhtml b/Email HTML Template/Template/Source/Html/_header.dhtml new file mode 100644 index 0000000..1e72c6d --- /dev/null +++ b/Email HTML Template/Template/Source/Html/_header.dhtml @@ -0,0 +1,11 @@ + + + + + Title + + + + + + \ No newline at end of file diff --git a/Email HTML Template/Template/Source/Html/index.dhtml b/Email HTML Template/Template/Source/Html/index.dhtml new file mode 100644 index 0000000..79d1724 --- /dev/null +++ b/Email HTML Template/Template/Source/Html/index.dhtml @@ -0,0 +1,114 @@ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
 
+
+ + + + + + +
 
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Verify Email

+
+ Hi Luke, +
+ Thanks for creating an account with us. +
To continue please verify your email with us. +
+ + + + + + +
+ Verify Your Email +
+
+
+ +
+ + \ No newline at end of file diff --git a/Email HTML Template/Template/Source/Sass/dna.config b/Email HTML Template/Template/Source/Sass/dna.config new file mode 100644 index 0000000..d6a5e87 --- /dev/null +++ b/Email HTML Template/Template/Source/Sass/dna.config @@ -0,0 +1,3 @@ +{ + "outputPath": "../../WebRoot/Assets/Css" +} \ No newline at end of file diff --git a/Email HTML Template/Template/Source/Sass/reset.scss b/Email HTML Template/Template/Source/Sass/reset.scss new file mode 100644 index 0000000..0d6ed91 --- /dev/null +++ b/Email HTML Template/Template/Source/Sass/reset.scss @@ -0,0 +1,49 @@ +// Body +body +{ + // Reset margin/padding + margin: 0; + padding: 0; +} + +// Image +img +{ + // Remove border + border: 0 none; + + // Auto height + height: auto; + + // Set line-height so inline works + line-height: 100%; + + // No outline + outline: none; + + // No text decoration + text-decoration: none; +} + +a img +{ + // Remove border + border: 0 none; +} + +// Table and column +table, td +{ + // Remove extra spacing + border-collapse: collapse; + + // No padding + padding: 0; +} + +// Header +h1,h2,h3,h4,h5,h6 +{ + // Margin + margin: 0; +} \ No newline at end of file diff --git a/Email HTML Template/Template/Source/Sass/style.scss b/Email HTML Template/Template/Source/Sass/style.scss new file mode 100644 index 0000000..fb7a019 --- /dev/null +++ b/Email HTML Template/Template/Source/Sass/style.scss @@ -0,0 +1,185 @@ +$background-color: #0d9e73; +$content-background-color: white; +$text-color: black; +$button-background-color: #fbbd1f; +$button-text-color: #833b20; +$default-font-family: sans-serif; +$web-font-family: 'Quicksand'; +$font-size-normal: 24px; +$font-size-large: 48px; +$line-height: 1.4; +$base-size: 16px; + +$spacing-small: $base-size * 0.5; +$spacing-normal: $base-size; +$spacing-tiny: $base-size * 0.25; +$spacing-large: $base-size * 1.5; +$spacing-larger: $base-size * 2; +$spacing-huge: $base-size * 3; + +body +{ + // Round font by default + font-family: $default-font-family; + font-family: $web-font-family; +} + +// Main Header +h1 +{ + font-size: $font-size-large; +} + +// Top-most table inside body +.container +{ + // Web-font if supported + font-family: $default-font-family; + font-family: $web-font-family; + + // Reset margins/padding + margin:0; + padding:0; + + // Set background color + background-color: $background-color; + + // Fill all available area + width:100% !important; + height:100% !important; + + // Font size + font-size: $font-size-normal; + + // Line height + line-height: $line-height; + + // Don't change our font size + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; +} + +// Wraps contents to email width +.wrapper +{ + // Block display + display: block; + + // Padding around all content + padding: $spacing-larger; +} + +// Content item +.content-item +{ + // Add padding + padding: $spacing-large; +} + +// Center text +.text-center +{ + text-align: center; +} + +// Inline-block +.inline-block +{ + display: inline-block; +} + +// Page behind visuals +.page-behind-1, .page-behind-2 +{ + // Remove any whitespace oversize + font-size: 0; + line-height: 0; + + table > tbody > tr > td + { + // Remove any whitespace oversize + font-size: 0; + line-height: 0; + + // Clear padding + padding: 0; + + // Set inner column to take all width + width: 100%; + + // Margin below + margin-bottom: $spacing-tiny; + + // Display inline block + display: inline-block; + + // Solid bar of color + border-top: $spacing-tiny solid $content-background-color; + } +} + +// Page behind visual +.page-behind-1 table +{ + width: 75%; +} + +// Page behind visual +.page-behind-2 table +{ + width: 90%; +} + +// Main page content +.page-content +{ + // Set background color + background: $content-background-color; + + // Add some padding + padding: $spacing-huge; +} + +// Button table container +.button +{ + // Size to content + //width: auto; + + td + { + // Rounded button + border-radius: $spacing-normal; + + // Background color + background-color: $button-background-color; + + // Button link + a + { + // Duplicate the border for anchor + // as Mail for Windows doesn't like + // honoring padding if there is no border + border-radius: $spacing-normal; + border: solid 1px $button-background-color; + + // Text color + color: $button-text-color; + + // Padding + padding: $spacing-normal $spacing-larger; + + // No underline + text-decoration: none; + + // Inline block so padding works + display: inline-block; + } + } +} + +.text-logo +{ + padding-top: $spacing-huge * 2; + padding-bottom: $spacing-larger; +} \ No newline at end of file diff --git a/Email HTML Template/Template/Source/dna.config b/Email HTML Template/Template/Source/dna.config new file mode 100644 index 0000000..7e1a109 --- /dev/null +++ b/Email HTML Template/Template/Source/dna.config @@ -0,0 +1,8 @@ +{ + "outputPath": "../WebRoot", + "liveServers": [ "../WebRoot" ], + "staticFolders": + [ + { "source": "Assets", "destination": "../WebRoot/Assets" } + ] +} \ No newline at end of file