2

We have customized passwordrecovery pipeline. In the password recovery email, we are not getting the html content, instead we are getting the tags itself.

Sample mail content we recieved:

enter image description here Below is the code snippet:

if (isHTML) args.HtmlEmailContent = mailContent;

enter image description here Is there any settings we need to change in the config.

  • Did you set the email message flag as html, in code? I am imagining you are sending your own email in the pipeline? – Chris Auer Sep 14 '17 at 13:21
  • Yes we are sending our own email in the pipeline. – user2357 Sep 14 '17 at 13:31
  • Can you add the code used to send the email please? – Richard Seal Sep 14 '17 at 13:33
1

The code we have written is working fine and we are receiving html content in email. It is our bad, we forgot to put the else condition in the below code. That resolved our issue!!!.

if (isHTML) args.HtmlEmailContent = mailContent; else args.EmailContent = mailContent;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.