Being new to programming is no reason to not be able to find a topic in a Help file. Any computer user should be able to do that. That said, the MailMessage documentation has code examples in C#, C++ and J# but no VB. Here's the output from Instant VB when converting the C# example:
vb.net Code:
  1. Public Shared Sub CreateMessageWithAttachment(ByVal server As String)
  2.             ' Specify the file to be attached and sent.
  3.             ' This example assumes that a file named Data.xls exists in the
  4.             ' current working directory.
  5.             Dim file As String = "data.xls"
  6.             ' Create a message and set up the recipients.
  7.             Dim message As MailMessage = New MailMessage("[email protected]", "[email protected]", "Quarterly data report.", "See the attached spreadsheet.")
  8.  
  9.             ' Create  the file attachment for this e-mail message.
  10.             Dim data As Attachment = New Attachment(file, MediaTypeNames.Application.Octet)
  11.             ' Add time stamp information for the file.
  12.             Dim disposition As ContentDisposition = data.ContentDisposition
  13.             disposition.CreationDate = System.IO.File.GetCreationTime(file)
  14.             disposition.ModificationDate = System.IO.File.GetLastWriteTime(file)
  15.             disposition.ReadDate = System.IO.File.GetLastAccessTime(file)
  16.             ' Add the file attachment to this e-mail message.
  17.             message.Attachments.Add(data)
  18.             'Send the message.
  19.             Dim client As SmtpClient = New SmtpClient(server)
  20.             ' Add credentials if the SMTP server requires them.
  21.             client.Credentials = CredentialCache.DefaultNetworkCredentials
  22.             client.Send(message)
  23.             ' Display the values in the ContentDisposition for the attachment.
  24.             Dim cd As ContentDisposition = data.ContentDisposition
  25.             Console.WriteLine("Content disposition")
  26.             Console.WriteLine(cd.ToString())
  27.             Console.WriteLine("File {0}", cd.FileName)
  28.             Console.WriteLine("Size {0}", cd.Size)
  29.             Console.WriteLine("Creation {0}", cd.CreationDate)
  30.             Console.WriteLine("Modification {0}", cd.ModificationDate)
  31.             Console.WriteLine("Read {0}", cd.ReadDate)
  32.             Console.WriteLine("Inline {0}", cd.Inline)
  33.             Console.WriteLine("Parameters: {0}", cd.Parameters.Count)
  34.             For Each d As DictionaryEntry In cd.Parameters
  35.                 Console.WriteLine("{0} = {1}", d.Key, d.Value)
  36.             Next d
  37.             data.Dispose()
  38.         End Sub
Even with that code, you should still READ the entire Help topic and also follow any relevant links, including those to the members for the MailMessage class and also the related class used in that code, like Attachment and SmtpClient.