Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
If I want to do this operation, I must to saves an attachments in my hard disk (in a directory) then send them to a web service in C# or I can send them directly.

Can someone help me ?
Posted
Comments
Suvabrata Roy 8-Jul-14 9:06am    
Your question is not clear.

What you want? do you want to send Attachment directly from mails to web service ?
Member 10872485 8-Jul-14 9:13am    
I want to parse the mail (subject, body, attachments ...) and send attechments to a web service in C#.
The final mission is to send attachments from the web service to another web application.
Suvabrata Roy 8-Jul-14 9:24am    
Which Client you are using ?
Member 10872485 8-Jul-14 9:29am    
The client is an add in C# for Outlook, I parse an email selected and I take their attachments !
Suvabrata Roy 8-Jul-14 10:01am    
Ok

1 solution

Hi,


How Send File to Web Service : http://support.microsoft.com/kb/318425[^]

How to Detect mail received Event : http://msdn.microsoft.com/en-us/library/ms268998.aspx[^]
 
Share this answer
 
Comments
Member 10872485 17-Jul-14 9:46am    
In your link, I need to know the <root>:\\DocumentDirectory\\ directory path on the server (Web Service), So can you tell me how to know the directory path on my IIS server in my PC, and if I want to send file (FILE attachments) from a web service to a web application in php, what can I do ?
Suvabrata Roy 18-Jul-14 1:13am    
Dirctory Path from IIS : Server.MapPath (http://msdn.microsoft.com/en-us/library/ms524632(v=vs.90).aspx)
You need to consume web service from PHP : http://php.net/manual/en/sca.examples.understanding-wsdl.php
Member 10872485 18-Jul-14 2:28am    
Excuse me, but I mean to get the path on my IIS server in my pc, I use Visual Studio 2010.
And I dont need to consume web service from php, I develop a plug-in ic C# for Outlook 2010, this plug-in is referenced to a web service, firstly, I transferred POST data from my web service to the web application (in PHP), because the web application is programmed to accept POST data to do such work, and now I want to sand a attachments from my plug-in to the web application the my web service referenced so I don't mean to consume my web service from php.
Thank you :)
Suvabrata Roy 18-Jul-14 2:32am    
Please specify what you want? I am bit confused.
Member 10872485 18-Jul-14 2:43am    
I rephrase my question, if I want to send attachments files from C# application (plug-in or otherwise) to a php web application through a web service, provided that the web application accepts attachments files as FILE data, how can I do it ???

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900