修改邮件格式测试
parent
7f40175a40
commit
bdcc2fa0e2
|
@ -46,18 +46,37 @@ namespace IRaCIS.Application.Services
|
|||
//主题
|
||||
messageToSend.Subject = "[来自展影IRC] 关于重置邮箱的提醒";
|
||||
|
||||
messageToSend.Body = new TextPart("plain")
|
||||
{
|
||||
Text = $@"尊敬的{userName},您好:
|
||||
感谢您使用展影云平台。
|
||||
您正在进行邮箱重置操作,验证码是: {verificationCode},请在3分钟内输入该验证码,进行后续操作。如非本人操作,请忽略该邮件。
|
||||
此邮件属系统自动发出,无需回复。
|
||||
var builder = new BodyBuilder();
|
||||
|
||||
祝您顺利!/Best Regards.
|
||||
上海展影医疗科技有限公司"
|
||||
builder.HtmlBody = @$"<body style='font-family: 微软雅黑;padding: 0;margin: 0;'>
|
||||
<div style='padding-left: 40px;background: #f6f6f6'>
|
||||
<div style='padding-top: 20px;padding-bottom:40px'>
|
||||
<div style='line-height: 40px;font-size: 18px'>
|
||||
尊敬的{userName}, 您好:
|
||||
</div>
|
||||
<div style='line-height: 40px;padding-left: 40px;margin-bottom: 10px;'>
|
||||
感谢您使用展影云平台。
|
||||
</div>
|
||||
<div>
|
||||
您正在进行邮箱重置操作,验证码是: {verificationCode},请在3分钟内输入该验证码,进行后续操作。如非本人操作,请忽略该邮件。
|
||||
</div>
|
||||
<div>
|
||||
此邮件属系统自动发出,无需回复。
|
||||
</div>
|
||||
<div>
|
||||
祝您顺利!/Best Regards。
|
||||
</div>
|
||||
<div>
|
||||
上海展影医疗科技有限公司
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>";
|
||||
|
||||
};
|
||||
|
||||
messageToSend.Body = builder.ToMessageBody();
|
||||
|
||||
|
||||
|
||||
EventHandler<MessageSentEventArgs> sucessHandle = (sender, args) =>
|
||||
{
|
||||
|
@ -92,16 +111,38 @@ namespace IRaCIS.Application.Services
|
|||
//主题
|
||||
messageToSend.Subject = "[来自展影IRC] 关于重置密码的提醒";
|
||||
|
||||
messageToSend.Body = new TextPart("plain")
|
||||
{
|
||||
Text = $@"您好:
|
||||
感谢您使用展影云平台。
|
||||
您正在进行邮箱重置密码操作,验证码是: {verificationCode},请在3分钟内输入该验证码,进行后续操作。如非本人操作,请忽略该邮件。
|
||||
此邮件属系统自动发出,无需回复。
|
||||
|
||||
祝您顺利!/Best Regards.
|
||||
上海展影医疗科技有限公司"
|
||||
};
|
||||
|
||||
var builder = new BodyBuilder();
|
||||
|
||||
builder.HtmlBody = @$"<body style='font-family: 微软雅黑;padding: 0;margin: 0;'>
|
||||
<div style='padding-left: 40px;background: #f6f6f6'>
|
||||
<div style='padding-top: 20px;padding-bottom:40px'>
|
||||
<div style='line-height: 40px;font-size: 18px'>
|
||||
您好:
|
||||
</div>
|
||||
<div style='line-height: 40px;padding-left: 40px;margin-bottom: 10px;'>
|
||||
感谢您使用展影云平台。
|
||||
</div>
|
||||
<div>
|
||||
您正在进行邮箱重置密码操作,验证码是: {verificationCode},请在3分钟内输入该验证码,进行后续操作。如非本人操作,请忽略该邮件。
|
||||
</div>
|
||||
<div>
|
||||
此邮件属系统自动发出,无需回复。
|
||||
</div>
|
||||
<div>
|
||||
祝您顺利!/Best Regards。
|
||||
</div>
|
||||
<div>
|
||||
上海展影医疗科技有限公司
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>";
|
||||
|
||||
|
||||
messageToSend.Body = builder.ToMessageBody();
|
||||
|
||||
|
||||
EventHandler<MessageSentEventArgs> sucessHandle = (sender, args) =>
|
||||
{
|
||||
|
@ -136,16 +177,39 @@ namespace IRaCIS.Application.Services
|
|||
//主题
|
||||
messageToSend.Subject = $"[来自展影IRC] [{researchProgramNo}] 关于中心调研的提醒";
|
||||
|
||||
messageToSend.Body = new TextPart("plain")
|
||||
{
|
||||
Text = $@"尊敬的用户,您好:
|
||||
感谢您使用展影云平台。
|
||||
您正在参与展影医疗IRC项目中心调研工作,验证码是: {verificationCode},请在3分钟内输入该验证码,进行后续操作。如非本人操作,请忽略该邮件。
|
||||
此邮件属系统自动发出,无需回复。
|
||||
|
||||
祝您顺利!/Best Regards.
|
||||
上海展影医疗科技有限公司"
|
||||
};
|
||||
|
||||
|
||||
var builder = new BodyBuilder();
|
||||
|
||||
builder.HtmlBody = @$"<body style='font-family: 微软雅黑;padding: 0;margin: 0;'>
|
||||
<div style='padding-left: 40px;background: #f6f6f6'>
|
||||
<div style='padding-top: 20px;padding-bottom:40px'>
|
||||
<div style='line-height: 40px;font-size: 18px'>
|
||||
您好:
|
||||
</div>
|
||||
<div style='line-height: 40px;padding-left: 40px;margin-bottom: 10px;'>
|
||||
感谢您使用展影云平台。
|
||||
</div>
|
||||
<div>
|
||||
您正在参与展影医疗IRC项目中心调研工作,验证码是: {verificationCode},请在3分钟内输入该验证码,进行后续操作。如非本人操作,请忽略该邮件。
|
||||
</div>
|
||||
<div>
|
||||
此邮件属系统自动发出,无需回复。
|
||||
</div>
|
||||
<div>
|
||||
祝您顺利!/Best Regards。
|
||||
</div>
|
||||
<div>
|
||||
上海展影医疗科技有限公司
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>";
|
||||
|
||||
|
||||
messageToSend.Body = builder.ToMessageBody();
|
||||
|
||||
|
||||
|
||||
EventHandler<MessageSentEventArgs> sucessHandle = (sender, args) =>
|
||||
|
@ -187,16 +251,38 @@ namespace IRaCIS.Application.Services
|
|||
//主题
|
||||
messageToSend.Subject = "[来自展影IRC] 关于重置邮箱的提醒";
|
||||
|
||||
messageToSend.Body = new TextPart("plain")
|
||||
{
|
||||
Text = $@"尊敬的{userName},您好:
|
||||
感谢您使用展影云平台。
|
||||
您正在进行邮箱重置操作,验证码是: {verificationCode},请在3分钟内输入该验证码,进行后续操作。如非本人操作,请忽略该邮件。
|
||||
此邮件属系统自动发出,无需回复。
|
||||
|
||||
祝您顺利!/Best Regards.
|
||||
上海展影医疗科技有限公司"
|
||||
};
|
||||
|
||||
var builder = new BodyBuilder();
|
||||
|
||||
builder.HtmlBody = @$"<body style='font-family: 微软雅黑;padding: 0;margin: 0;'>
|
||||
<div style='padding-left: 40px;background: #f6f6f6'>
|
||||
<div style='padding-top: 20px;padding-bottom:40px'>
|
||||
<div style='line-height: 40px;font-size: 18px'>
|
||||
您好:
|
||||
</div>
|
||||
<div style='line-height: 40px;padding-left: 40px;margin-bottom: 10px;'>
|
||||
感谢您使用展影云平台。
|
||||
</div>
|
||||
<div>
|
||||
您正在进行邮箱重置操作,验证码是: {verificationCode},请在3分钟内输入该验证码,进行后续操作。如非本人操作,请忽略该邮件。
|
||||
</div>
|
||||
<div>
|
||||
此邮件属系统自动发出,无需回复。
|
||||
</div>
|
||||
<div>
|
||||
祝您顺利!/Best Regards。
|
||||
</div>
|
||||
<div>
|
||||
上海展影医疗科技有限公司
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>";
|
||||
|
||||
|
||||
messageToSend.Body = builder.ToMessageBody();
|
||||
|
||||
|
||||
EventHandler<MessageSentEventArgs> sucessHandle = (sender, args) =>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue