Body generator collection for emails
This commit is contained in:
18
src/emailTemplateCollection.cpp
Normal file
18
src/emailTemplateCollection.cpp
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#include <string>
|
||||||
|
|
||||||
|
namespace EmailTemplateCollection {
|
||||||
|
const std::string PASSWORD_RESET_EMAIL_SUBJECT = "Password Reset";
|
||||||
|
|
||||||
|
|
||||||
|
std::string passwordResetEmail(const std::string& domain, const std::string& email, const std::string& passwordResetKey) {
|
||||||
|
std::string emailContent;
|
||||||
|
emailContent = "<h1>Password Reset</h1><br>";
|
||||||
|
emailContent += "If you have requested the Password Reset for the following email: " + email + "<br>";
|
||||||
|
emailContent += "please follow the following link: ";
|
||||||
|
emailContent += R"(<a href=")";
|
||||||
|
emailContent += domain + "/PasswordReset/" + passwordResetKey;
|
||||||
|
emailContent += R"(">Password Reset.</a><br>)";
|
||||||
|
emailContent += "If you haven't requested this PasswordReset please ignore this email";
|
||||||
|
return emailContent;
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user