JoeJoe
JoeJoe

Reputation: 715

asp.net Membership : confirmation email blank

I'm using stock Asp.net membership with built in Login controls, etc. Problem is that the confirmation email that is send by registering has a body that is blank. It should have a link in it that the user clicks on to confirm their email and register. The email does send and is delivered ok except the blank body. Anyone know what I'm doing wrong ? TIA

Upvotes: 0

Views: 602

Answers (2)

Bob Kaufman
Bob Kaufman

Reputation: 12835

Are you assigning the content of the message to the message body?

message.Body = "Dear Subscriber, ...";

Upvotes: 1

Jonathan
Jonathan

Reputation: 1892

make sure your code includes:

message.IsBodyHtml = true;

Upvotes: 0

Related Questions