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
 
It would be great help if you can direct me what excatly to look for in VSTO.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top