1
Answer

The specified string is not in the form required for an e-mi

mari muthu

mari muthu

8y
246
1
hi,
 
 i am getting Error this line only,
 
string body = RazorEngine.Engine.Razor.RunCompile(templateAsString, "templateKey", typeof(TestEmailTemplateViewModel), myViewModel);
// string body1 = RazorEngineServiceExtensions.RunCompile(templateAsString, "templateKey", typeof(TestEmailTemplateViewModel), myViewModel);
SendEmail("[email protected]", To, "testEmail", body);
 
 
Actually i am trying to send mail with Email Template in my code i have send two mails for the single ActionEvent but am getting Error  
 
"The specified string is not in the form required for an e-mail"
 
 
Please help me  

Answers (1)