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
Bhuvanesh MohankumarPosted May 9, 2016, 1:18 AM
PleaseCheck the To - address is valid value.
Check by changing the body of email as "Test Body Value", like something hard coded value to check is that working, may be some invalid characters may blockingemailrequest process.