I'm posting this because I had this problem earlier this week. A program I'm writing for work needed to send an email to everyone in the department when someone triggered a specific event. The email would contain information the user entered into the program as well. This feature will use the Microsoft Outlook 9.0 Object Library to send the email. Because everyone in this department is required to have Outlook open while at work, it fits perfectly with out work enviornment. Please be aware that Outlook Must be running in order for this to work.

To begin, in VB, go to Project, and choose References. Scroll down the list until you see Microsoft Outlook 9.0 Object Library, and check the box, then select ok. You can verify that you have added the Outlook object library to your project by click on View, and select Object Browser, and Under All Libraries, select Outlook.

Next, in the control you want to trigger the email even, enter this code:

VB Code:
  1. 'Sets up and sends email
  2. 'This will send an email to the given email address.
  3.  
  4. 'Create Outlook object variable
  5. Dim objOutlook As Object
  6.  
  7. 'Assign Outlook.Application to object variable
  8. Set objOutlook = CreateObject("Outlook.Application")
  9.  
  10. With objOutlook.CreateItem(olMailItem)
  11.      'To: Field of the email
  12.      .Recipients.Add "emailaddress@domain.com"
  13.  
  14.      'Subject: Field of the email
  15.      .Subject = "subject of the email"
  16.  
  17.      'Body of the email
  18.      .Body = "Body of the email"
  19.  
  20.      'Copy message to Outlook Outbox with Send
  21.      .Send
  22. End With
  23.  
  24. 'Quits Outlook  *Note this will close out the program, If you want outlook to stay open, then don't use this line of code.
  25. objOutlook.Quit
  26.  
  27. 'Release object variable
  28. Set objOutlook = Nothing
  29.  
  30. '*********************************************

Thats it. You can modify it to fit your needs. It worked perfectly for what i needed it to do. Hopefully this will be helpful to you as well