| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace Diligent.WebAPI.Business.Helper
- {
- public static class HTMLHelper
- {
- public static string RenderForgotPasswordPage(string url)
- {
- return "<div style=\"font-family: sans-serif\">" +
- "<div style=\"font-family: sans-serif;text-align: center;\">" +
- "<h2 style=\"color: #017397;\">HR Center Password Reset</h2>" +
- "<p style=\"font-size: 20px\">" +
- "To reset your HR Center password, please click on the button below." +
- "</p>" +
- "<a style = \"color: white;text-decoration:none;background-color: #017397;cursor: pointer;font-size: 20px;width: 220px;text-align: center;border-radius: 5px;padding: 5px 15px;height: 25px;\" " +
- $"href=\"{url}\">" +
- " RESET PASSWORD" +
- "</a>" +
- "<p style = \"font-size: 12px; margin-top: 25px;\" >" +
- "Please do not reply to this email.This message was sent from a notification-only address that is not monitored." +
- "</p>" +
- "</div>" +
- "</div>";
- }
- public static string RenderRegisterPage(string url)
- {
- return "<div style=\"font-family: sans-serif\">" +
- "<div style=\"font-family: sans-serif;text-align: center;\">" +
- "<h2 style=\"color: #017397;\">Welcome to HR Center</h2>" +
- "<p style=\"font-size: 20px\">" +
- "To register, please click on the button below." +
- "</p>" +
- "<a style = \"color: white;text-decoration:none;background-color: #017397;cursor: pointer;font-size: 20px;width: 220px;text-align: center;border-radius: 5px;padding: 5px 15px;height: 25px;\" " +
- $"href=\"{url}\">" +
- " Click here to register" +
- "</a>" +
- "<p style = \"font-size: 12px; margin-top: 25px;\" >" +
- "Please do not reply to this email.This message was sent from a notification-only address that is not monitored." +
- "</p>" +
- "</div>" +
- "</div>";
- }
-
- public static string RenderTagPage(string url)
- {
- return "<div>" +
- "<a style = \"color: white;text-decoration:none;background-color: #017397;cursor: pointer;font-size: 20px;border-radius: 5px;padding: 5px 15px;height: 25px;margin-top:10px;\" " +
- $"href=\"{url}\">" +
- "Click here to see the comment" +
- "</a>" +
- "</div>";
- }
- }
- }
|