p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   .NET Framework 2.0 (http://p2p.wrox.com/forumdisplay.php?f=141)
-   -   Call outlook ASP.Net (http://p2p.wrox.com/showthread.php?t=71200)

dani_adam71 October 26th, 2008 10:45 PM

Call outlook ASP.Net

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


planoie October 27th, 2008 08:15 AM

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.


All times are GMT -4. The time now is 11:38 PM.

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