Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ This workflow demonstrates how to use the Amazon Simple Email Service (SES) v2 t
private static string _textWelcomeFile = "welcome.txt";
private static string _couponsDataFile = "sample_coupons.json";

// Relative location of the shared workflow resources folder.
private static string _resourcesFilePathLocation = "../../../../../../../workflows/sesv2_weekly_mailer/resources/";
// Relative location of the resources folder.
private static string _resourcesFilePathLocation = "../../../../resources/";

public static async Task Main(string[] args)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<title>Weekly Coupons Newsletter</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 600px;
margin: 0 auto;
padding: 20px;
}
h1 {
color: #333;
}
ul {
list-style-type: none;
padding: 0;
}
li {
background-color: #f5f5f5;
padding: 10px;
margin-bottom: 10px;
border-radius: 5px;
}
</style>
</head>
<body>
<h1>Weekly Coupons Newsletter</h1>
<p>Check out this week's hot deals and exclusive coupons!</p>
<ul>
{{#each coupons}}
<li>{{details}}</li>
{{/each}}
</ul>
<p>
Hurry, these offers won't last long! Visit our website or your nearest
store to take advantage of these amazing deals.
</p>
<p>
Happy shopping!<br />
The Weekly Coupons Team
</p>
<p>
<a href="{{amazonSESUnsubscribeUrl}}">Unsubscribe</a>
</p>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Weekly Coupons Newsletter

Check out this week's hot deals and exclusive coupons!

{{#each coupons}}
- {{details}}
{{/each}}

Hurry, these offers won't last long! Visit our website or your nearest store to take advantage of these amazing deals.

Happy shopping!
The Weekly Coupons Team

---

Unsubscribe: {{amazonSESUnsubscribeUrl}}
22 changes: 22 additions & 0 deletions dotnetv3/SESv2/NewsLetterWorkflow/resources/sample_coupons.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"coupons": [
{
"details": "20% off on all electronics"
},
{
"details": "Buy one, get one free on books"
},
{
"details": "15% off on home appliances"
},
{
"details": "Free shipping on orders over $50"
},
{
"details": "25% off on outdoor gear"
},
{
"details": "10% off on groceries"
}
]
}
15 changes: 15 additions & 0 deletions dotnetv3/SESv2/NewsLetterWorkflow/resources/welcome.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>Welcome to the Weekly Coupons Newsletter</title>
</head>
<body>
<h1>Welcome to the Weekly Coupons Newsletter!</h1>
<p>
Thank you for subscribing to our weekly newsletter. Every week, you'll
receive a list of exciting coupons and deals from our partners.
</p>
<p>Stay tuned for your first newsletter, coming soon!</p>
<p>Best regards,<br />The Weekly Coupons Team</p>
</body>
</html>
8 changes: 8 additions & 0 deletions dotnetv3/SESv2/NewsLetterWorkflow/resources/welcome.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Welcome to the Weekly Coupons Newsletter!

Thank you for subscribing to our weekly newsletter. Every week, you'll receive a list of exciting coupons and deals from our partners.

Stay tuned for your first newsletter, coming soon!

Best regards,
The Weekly Coupons Team
Loading