Permalink
Browse files

Add Email Button

  • Loading branch information...
scottsauber committed Jul 6, 2018
1 parent 2d17606 commit e56dff2313ba67f30d8df75e5c0ddd9446cd4de0
@@ -0,0 +1,18 @@
@using RazorHtmlEmails.RazorClassLib.Views.Shared
@model EmailButtonViewModel
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#ffffff" align="center" style="padding: 20px 30px 60px 30px;">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" style="border-radius: 3px;" bgcolor="#539be2">
<a href="@Model.Url" target="_blank" style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #539be2; display: inline-block;">
@Model.Text
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
@@ -0,0 +1,14 @@
namespace RazorHtmlEmails.RazorClassLib.Views.Shared
{
public class EmailButtonViewModel
{
public EmailButtonViewModel(string text, string url)
{
Text = text;
Url = url;
}
public string Text { get; set; }
public string Url { get; set; }
}
}

0 comments on commit e56dff2

Please sign in to comment.