I have my PrintDocument1_PrintPage
like this:
Dim x As Single = e.MarginBounds.Left
Dim y As Single = e.MarginBounds.Top
Dim bmp As New Bitmap(Me.GroupBox3.Width, Me.GroupBox3.Height)
Me.GroupBox3.DrawToBitmap(bmp, New Rectangle(0, 0, Me.GroupBox3.Width, Me.GroupBox3.Height))
e.Graphics.DrawImage(DirectCast(bmp, Image), x, y)
Then, I have to send an simple email with this bitmap in the body and I don't know how to do it.
e_mail = New MailMessage()
e_mail.From = New MailAddress("mail@gmail.com")
e_mail.To.Add(MailBox1.Text)
e_mail.Subject = "Subject here"
e_mail.IsBodyHtml = False
e_mail.Body = I WANT TO ADD THE PREVIOUS BITMAP HERE.
Smtp_Server.Send(e_mail)
MsgBox("Mail Sent")
Thank you!