Wrox Programmer Forums
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 26th, 2008, 10:45 PM
Registered User
 
Join Date: Oct 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Call outlook ASP.Net

Hi

I'm trying to Call outlook with an attachment, mail subject ,mail Body, send to and CC


Shell("""C:\Program Files\Microsoft Office\Office11\Outlook.exe"" /a ""C:\test.pdf""")

this code work fine to Call outlook with attachment, but is there a way that I can wrote Mail Subject, body, send to and CC

Thanks

 
Old October 27th, 2008, 08:15 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Are you trying to do this from ASP.NET?? You can't make server process calls (i.e. starting an application) from ASP.NET and have it work on the client. That's not how it works. You are probably seeing it working right now because you are using the ASP.NET development web server, which runs on your desktop as a user application. In a true server environment (IIS) this won't work.

-Peter
compiledthoughts.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Call Outlook snufse Visual Studio 2005 0 March 11th, 2008 11:10 AM
call window dialog component with asp.net/vb.net s3ng ASP.NET 1.x and 2.0 Application Design 0 June 21st, 2005 04:54 AM
How to call VC++ DLL from ASP/ASP.net? leesoon Classic ASP Professional 0 December 9th, 2004 10:06 PM
IS it possible to call Outlook from VBScript? nfoliveira VBScript 1 March 19th, 2004 09:49 AM
How can I call a vb.net Exe from an asp.net page? jorevil Classic ASP Basics 0 October 1st, 2003 11:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.