I need to send an email that contains a pie chart in the body of the email.
The Pie chart that is being included in the email body should have 25% of it filled.
So far i have sorted the email code. Here's the code.
This is a VB forms application.
Try Dim Smtp As New SmtpClient Dim em As New MailMessage() Smtp.UseDefaultCredentials = False Smtp.Credentials = New Net.NetworkCredential("xx@gmail.com", "xxxxxx") Smtp.Port = 587 Smtp.EnableSsl = True Smtp.Host = "smtp.gmail.com" em= New MailMessage() em.From = New MailAddress("xx@gmail.com") em.To.Add("y@y.com") em.Subject = "Pie Chart attached to email body" em.IsBodyHtml = True em.Body = "I have to attach a Pie chart that is 25% of it filled" Smtp.Send(em) Catch error_t As Exception MsgBox(error_t.ToString) End Try