File tree Expand file tree Collapse file tree 2 files changed +128
-0
lines changed
Specialized Areas/Notifications/Modern Email Layout Designs Expand file tree Collapse file tree 2 files changed +128
-0
lines changed Original file line number Diff line number Diff line change 1+ ### Overview
2+
3+ Added a ** modern, fully responsive Email Layout** for ServiceNow notifications.
4+ This layout provides a professional and dynamic look for system emails such as approvals, alerts, and workflow updates.
5+
6+ ---
7+
8+ ### 🔑 Features
9+
10+ - Clean, responsive HTML with inline CSS (Outlook-safe)
11+ - Dynamic placeholders for subject, body, recipient, and links
12+ - Supports unsubscribe and preference management variables
13+ - Compatible with all standard ServiceNow notification types
14+ - Easily customizable header colors, logo, and footer content
15+
16+ ---
17+
18+ ### 📁 Files Included
19+
20+ | File | Description |
21+ | ------------- | ------------------------------------ |
22+ | ` Script.html ` | Email Layout definition (HTML + CSS) |
23+ | ` README.md ` | Setup guide and usage instructions |
24+
25+ ---
26+
27+ ### ⚙️ Installation
28+
29+ 1 . Navigate to ** System Notification → Email Layouts → New**
30+ 2 . Paste the HTML layout above into the content field
31+ 3 . Save and name it ** "Modern Notification Layout"**
32+ 4 . Assign this layout to your email notifications (under "Layout" field)
33+
34+ ---
35+
36+ ### 💡 Example Use Case
37+
38+ Used for travel approvals, expense updates, password resets, or ticket notifications:
39+
40+ ``` html
41+ ${mail_script:travel_notification}
42+ ```
Original file line number Diff line number Diff line change 1+ < p > </ p >
2+ < style >
3+ body {
4+ font-family : Arial, sans-serif;
5+ background-color : # f4f4f4 ;
6+ margin : 0 ;
7+ padding : 0 ;
8+ }
9+ .container {
10+ width : 100% ;
11+ max-width : 600px ;
12+ margin : 20px auto;
13+ background : # ffffff ;
14+ padding : 0 ;
15+ border-radius : 8px ;
16+ box-shadow : 0px 0px 10px rgba (0 , 0 , 0 , 0.1 );
17+ overflow : hidden;
18+ }
19+ .header {
20+ background : # 004080 ;
21+ color : # ffffff ;
22+ text-align : center;
23+ padding : 20px ;
24+ }
25+ .header img {
26+ max-width : 150px ;
27+ }
28+ .subject {
29+ font-size : 20px ;
30+ font-weight : 600 ;
31+ margin-top : 10px ;
32+ }
33+ .content {
34+ padding : 24px ;
35+ color : # 333 ;
36+ line-height : 1.6 ;
37+ font-size : 15px ;
38+ }
39+ .button {
40+ display : inline-block;
41+ padding : 10px 18px ;
42+ margin-top : 15px ;
43+ background : # 004080 ;
44+ color : # ffffff ;
45+ text-decoration : none;
46+ border-radius : 5px ;
47+ }
48+ .footer {
49+ background : # f4f4f4 ;
50+ text-align : center;
51+ padding : 16px ;
52+ font-size : 12px ;
53+ color : # 666 ;
54+ border-top : 1px solid # e2e2e2 ;
55+ }
56+ a {
57+ color : # 004080 ;
58+ text-decoration : none;
59+ }
60+ </ style >
61+
62+ < div class ="container ">
63+ <!-- Header -->
64+ < div class ="header ">
65+ < img src ="${URI_REF}/travel_logo.png " alt ="Logo " width ="120 " height ="40 " />
66+ </ div >
67+
68+ <!-- Body -->
69+ < div class ="content ">
70+ ${notification.body}
71+
72+ < p style ="margin-top: 30px; font-size: 13px; color: #777 ">
73+ If you have any questions, contact
74+ < a href ="mailto:support@company.com "> support@company.com</ a > .
75+ </ p >
76+ </ div >
77+
78+ <!-- Footer -->
79+ < div class ="footer ">
80+ © ${gs.dateGenerate().getYear()} Travel & Expense Portal. All Rights
81+ Reserved.< br />
82+ < br />
83+ < a href ="${NOTIF_UNSUB} "> Unsubscribe</ a > |
84+ < a href ="${NOTIF_PREFS} "> Manage Preferences</ a >
85+ </ div >
86+ </ div >
You can’t perform that action at this time.
0 commit comments