kourosh saleh

kourosh saleh

  • NA
  • 20
  • 50k

sending mail by SmartTag

May 2 2006 3:08 PM
Hi, I am trying to make my SmartTag to send e-mail but I dont know How. I have a contact list from SharePoint that contains name and e-mail address, when you write name of one of the contacts you get the Action of the SmartTag, ( I mean it works and it recognizes the name of my contacts in sharepoint) , my problem is how it can send e-mail I tryed following code: (it does not work) ProcessStartInfo StartMail = new ProcessStartInfo("OUTLOOK.EXE"); StartMail.Arguments = string.Format("[email protected]"); Process.Start(StartMail); I get following error: Cannot start Microsoft Office Outlook. The command line argument is not valid. Verify the switch you are using thanks for your help.