Skip to content

Commit 6b6e0f0

Browse files
committed
Added needed resources for testing.
1 parent ad89859 commit 6b6e0f0

File tree

6 files changed

+110
-2
lines changed

6 files changed

+110
-2
lines changed

dotnetv3/SESv2/NewsLetterWorkflow/Sesv2Scenario/NewsletterWorkflow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ This workflow demonstrates how to use the Amazon Simple Email Service (SES) v2 t
5757
private static string _textWelcomeFile = "welcome.txt";
5858
private static string _couponsDataFile = "sample_coupons.json";
5959

60-
// Relative location of the shared workflow resources folder.
61-
private static string _resourcesFilePathLocation = "../../../../../../../workflows/sesv2_weekly_mailer/resources/";
60+
// Relative location of the resources folder.
61+
private static string _resourcesFilePathLocation = "../../../../resources/";
6262

6363
public static async Task Main(string[] args)
6464
{
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Weekly Coupons Newsletter</title>
5+
<style>
6+
body {
7+
font-family: Arial, sans-serif;
8+
max-width: 600px;
9+
margin: 0 auto;
10+
padding: 20px;
11+
}
12+
h1 {
13+
color: #333;
14+
}
15+
ul {
16+
list-style-type: none;
17+
padding: 0;
18+
}
19+
li {
20+
background-color: #f5f5f5;
21+
padding: 10px;
22+
margin-bottom: 10px;
23+
border-radius: 5px;
24+
}
25+
</style>
26+
</head>
27+
<body>
28+
<h1>Weekly Coupons Newsletter</h1>
29+
<p>Check out this week's hot deals and exclusive coupons!</p>
30+
<ul>
31+
{{#each coupons}}
32+
<li>{{details}}</li>
33+
{{/each}}
34+
</ul>
35+
<p>
36+
Hurry, these offers won't last long! Visit our website or your nearest
37+
store to take advantage of these amazing deals.
38+
</p>
39+
<p>
40+
Happy shopping!<br />
41+
The Weekly Coupons Team
42+
</p>
43+
<p>
44+
<a href="{{amazonSESUnsubscribeUrl}}">Unsubscribe</a>
45+
</p>
46+
</body>
47+
</html>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Weekly Coupons Newsletter
2+
3+
Check out this week's hot deals and exclusive coupons!
4+
5+
{{#each coupons}}
6+
- {{details}}
7+
{{/each}}
8+
9+
Hurry, these offers won't last long! Visit our website or your nearest store to take advantage of these amazing deals.
10+
11+
Happy shopping!
12+
The Weekly Coupons Team
13+
14+
---
15+
16+
Unsubscribe: {{amazonSESUnsubscribeUrl}}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"coupons": [
3+
{
4+
"details": "20% off on all electronics"
5+
},
6+
{
7+
"details": "Buy one, get one free on books"
8+
},
9+
{
10+
"details": "15% off on home appliances"
11+
},
12+
{
13+
"details": "Free shipping on orders over $50"
14+
},
15+
{
16+
"details": "25% off on outdoor gear"
17+
},
18+
{
19+
"details": "10% off on groceries"
20+
}
21+
]
22+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Welcome to the Weekly Coupons Newsletter</title>
5+
</head>
6+
<body>
7+
<h1>Welcome to the Weekly Coupons Newsletter!</h1>
8+
<p>
9+
Thank you for subscribing to our weekly newsletter. Every week, you'll
10+
receive a list of exciting coupons and deals from our partners.
11+
</p>
12+
<p>Stay tuned for your first newsletter, coming soon!</p>
13+
<p>Best regards,<br />The Weekly Coupons Team</p>
14+
</body>
15+
</html>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Welcome to the Weekly Coupons Newsletter!
2+
3+
Thank you for subscribing to our weekly newsletter. Every week, you'll receive a list of exciting coupons and deals from our partners.
4+
5+
Stay tuned for your first newsletter, coming soon!
6+
7+
Best regards,
8+
The Weekly Coupons Team

0 commit comments

Comments
 (0)