My company has a C# .Net based web service for sending email. This web service does not currently support attachments. We have many old ASP Classic pages that are still using CDONTS for sending emails (including ones with attachments). My current task is to find out if we can add attachment support to the web service such that we can replace the ASP Classic CDONTS with calls to the web service. What I'm getting hung up on is this: is it possible to pass those files that need to be attached to the web service from ASP Classic.
- I know how to call a web service from ASP Classic; I can already use the existing web service from Classic when I don't need attachments.
- I know that I could use CDOSYS or other ASP Classic methods to send the email: I'm being asked to use this existing web service.
- I've seen lots of examples of web services taking in files as a byte array: how would you create and send that byte array from ASP Classic?
- I've also seen lots of email web service examples where the service just takes in a file path. Am I wrong in thinking that this would be problematic if you're running the web service on a different machine? The path you send would have to be accessible to the web service host.
Any help is appreciate: I've found lots of articles describing half of what I need to do, or only approaching it from a .Net-to-.Net angle.