mari muthu

mari muthu

  • NA
  • 198
  • 107k

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

May 6 2016 6:08 AM
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)