Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

this is the code i m using for sending mail.. i want to send a link in 'message.body' but its givng error.... plz help me if someone has the solution

$
0
0
SmtpClient smtpClient = new SmtpClient();
                MailMessage message = new MailMessage();

                message.IsBodyHtml = true;
                   message.To.Add("ABC@yahoo.in");
                message.Subject = "Test";
                
                message.Body = "<html><b>Hello World!</b></html>";

                smtpClient.Send(message);
          }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }

Viewing all articles
Browse latest Browse all 8156

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>