Skip to content

Commit

Permalink
Final Code for NSJS357
Browse files Browse the repository at this point in the history
  • Loading branch information
manikbajaj committed Jun 18, 2024
1 parent fb05faa commit 58d802f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/mail/mail.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { join } from 'path';
},
template: {
dir: join(__dirname, 'templates'),
adapter: new EjsAdapter(),
adapter: new EjsAdapter({ inlineCssEnabled: true }),
options: {
strict: false,
},
Expand Down
28 changes: 20 additions & 8 deletions src/mail/templates/welcome.ejs
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
<p>Dear <%= name %>,</p>
<p>
<p style="font-family: Arial, sans-serif; font-size: 16px; color: #333333">
Dear <%= name %>,
</p>
<p style="font-family: Arial, sans-serif; font-size: 16px; color: #333333">
Thanks for signing up for Nice App. We're very excited to have you on board.
</p>

<p>Here are your account details:</p>
<ul>
<li>Email: <%= email %></li>
<li>Login URL: <%= loginUrl %></li>
<p style="font-family: Arial, sans-serif; font-size: 16px; color: #333333">
Here are your account details:
</p>
<ul
style="
font-family: Arial, sans-serif;
font-size: 16px;
color: #333333;
padding-left: 20px;
"
>
<li style="color: #555555">Email: <%= email %></li>
<li style="color: #555555">Login URL: <%= loginUrl %></li>
</ul>

Thanks!
NestJs Blog Support
<p style="font-family: Arial, sans-serif; font-size: 16px; color: #333333">
Thanks!<br />NestJs Blog Support
</p>
2 changes: 1 addition & 1 deletion src/users/http/users.post.enpoints.http
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Content-Type: application/json
{
"firstName": "Mark",
"lastName": "Doe",
"email": "mark14@doe.com",
"email": "mark15@doe.com",
"password": "Password123#"
}

Expand Down

0 comments on commit 58d802f

Please sign in to comment.