history service, mail template improved, general listing entry
This commit is contained in:
@@ -34,6 +34,8 @@ export class MailService {
|
||||
iname: mailInfo.sender.name,
|
||||
phone: mailInfo.sender.phoneNumber,
|
||||
email: mailInfo.sender.email,
|
||||
id: mailInfo.listing.id,
|
||||
url: 'http://localhost:4200',
|
||||
},
|
||||
});
|
||||
return user;
|
||||
|
||||
@@ -1,12 +1,104 @@
|
||||
<p>Dear {{ name }},</p>
|
||||
<p>You got an inquiry regarding your '{{title}}'' listing</p>
|
||||
<p>
|
||||
Buyers Information
|
||||
</p>
|
||||
<p> Contact Name: {{iname}}</p>
|
||||
<p> Contact Phone: {{phone}}</p>
|
||||
<p> Contact Mail: {{email}}</p>
|
||||
<p> Contact Name: {{iname}}</p>
|
||||
<p> Comments: {{inquiry}}</p>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Notification: New Buyer Lead</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
.container {
|
||||
width: 80%;
|
||||
margin: auto;
|
||||
background-color: white;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.header {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
color: #333333;
|
||||
}
|
||||
.subheader {
|
||||
text-align: center;
|
||||
margin-bottom: 20px;
|
||||
color: #555555;
|
||||
}
|
||||
.section {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.section-title {
|
||||
color: #1E90FF;
|
||||
font-weight: bold;
|
||||
border-bottom: 2px solid #1E90FF;
|
||||
padding-bottom: 5px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.info {
|
||||
margin-bottom: 10px;
|
||||
padding: 10px;
|
||||
}
|
||||
.info:nth-child(even) {
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
.info-label {
|
||||
font-weight: bold;
|
||||
color: #333333;
|
||||
}
|
||||
.info-value {
|
||||
margin-left: 10px;
|
||||
color: #555555;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">Notification: New buyer lead from the Bizmatch Network</div>
|
||||
<div class="subheader">Dear {{name}},</div>
|
||||
<p>You've received a message regarding your "{{title}}" listing.</p>
|
||||
|
||||
<div class="section">
|
||||
<div class="section-title">Buyer Information</div>
|
||||
<div class="info">
|
||||
<span class="info-label">Contact Name:</span>
|
||||
<span class="info-value">{{iname}}</span>
|
||||
</div>
|
||||
<div class="info">
|
||||
<span class="info-label">Contact Email:</span>
|
||||
<span class="info-value">{{email}}</span>
|
||||
</div>
|
||||
<div class="info">
|
||||
<span class="info-label">Contact Phone:</span>
|
||||
<span class="info-value">{{phone}}</span>
|
||||
</div>
|
||||
<div class="info">
|
||||
<span class="info-label">Comments:</span>
|
||||
<span class="info-value">{{inquiry}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>Internal Listing Number: {{internalListingNumber}}</p>
|
||||
<div class="section">
|
||||
<div class="section-title">Listing Information</div>
|
||||
<div class="info">
|
||||
<span class="info-label">Headline:</span>
|
||||
<span class="info-value">{{title}}</span>
|
||||
</div>
|
||||
<div class="info">
|
||||
<span class="info-label">Listing ID:</span>
|
||||
<span class="info-value"><a href="{{url}}/listing/{{id}}">{{id}}</a></span>
|
||||
</div>
|
||||
{{#if internalListingNumber}}
|
||||
<div class="info">
|
||||
<span class="info-label">Ref ID:</span>
|
||||
<span class="info-value">{{internalListingNumber}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user