How to use outlook in .net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a .net application which will get the emailid's from
list of contacts and will call the "New Mail Message" window of the outlook
to compose a new email. All the email -id's will be automaically added to the
"To" field and user can write an email and send it.
Need direction how this can be done.

Thanks
RK
 
i have an app that does something similar... creates a new Outlook app and
sends a mail message to a contacts list.

Dim out As New Microsoft.Office.Interop.Outlook.Application
Dim mail As Microsoft.Office.Interop.Outlook.MailItem
mail = out.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.
olMailItem)
mail.To = editEmailList.Text
mail.Subject = subject
mail.Body = message + vbCrLf
mail.Send()

it will ask you if you want to allow a third party Application to send an
email through your account. we use a simple app called "Check Yes". It
waits for this message window and automatically handles it.
 
Back
Top