tags:

views:

32

answers:

1

So I just googled n found out this code:-

MailMessage message = new MailMessage            ("[email protected]","[email protected]","Testing","This is a test mail");

Now my ques:- How do I send a nicely formatted Email with links and all instead of simple text "This is a test mail" ?? I don't wanna attach no file

+5  A: 

You could send the message body as HTML which will allow you to have links and such:

var message = new MailMessage("[email protected]", "[email protected]");
message.Subject = "Testing";
message.IsBodyHtml = true;
message.Body = "<html><body><div>Test message</div><a href=\"http://www.google.com\"&gt;some link</a></body></html>";
Darin Dimitrov
ok thnx..will try this out
Serenity