Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sending mail by SmartTag

Status
Not open for further replies.

cyrus71

Programmer
Feb 6, 2006
34
SE
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 names and e-mail addresses, 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("example@hotmail.com"); 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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top