question

peterliles-4155 avatar image
0 Votes"
peterliles-4155 asked YijingSun-MSFT commented

EmbeddedObjects template cause document elements to disappear when sending email from CreateUserWizard

In my CreateUserWizard i have set the EmbeddedObject template to add image to my BodyFileName html document. This works fine except now an anchor element will not show in document output. The href attribute is set from code in page behind during the email sending event.

<p>
<a href="<%VerifyUrl%>" ><%VerifyUrl%></a>
</p>

dotnet-aspnet-webforms
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @peterliles-4155 ,

This works fine except now an anchor element will not show in document output. The href attribute is set from code in page behind during the email sending event.

I don't understand your meanings.Do you want to show anchor tag in your email or you can't show link in your email? If you want to show anchor tag in your content,it's can't automatically save as html format.
Best regards,
Yijing Sun
0 Votes 0 ·

1 Answer

peterliles-4155 avatar image
0 Votes"
peterliles-4155 answered YijingSun-MSFT commented

The link that has a placeholder as shown previously and set from code behind like e.Message.Body = e.Message.Body.Replace("<%VerifyUrl%>", verifyUrl) will not show in html page?

Ever since i set embeddedobjects template to add object such as image.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @peterliles-4155 ,
Where do you write '<%VerifyUrl%>'? I think it need to be writed in your html document. Do you write it directly in the embeddedobjects template ?
Best regards,
Yijing Sun

0 Votes 0 ·