|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How can we mail some file without mentioning the SMTP server addreHi everyone,
I am working on an application, where I need to mail some xml files as attachments. I tried to use System.Diagnostic.Process class but it does not provide any help for attaching a file automatically. Then I resorted to System. Web namespace but here also it does not take the SMTP server's address automatically. I have to mention it. The application on which I am working is a general purpose application and user might not be knowing the server's address. Is there anyway through which it can take the server's address automatically? All responses are welcome. create a webservice on your corporate server that receives the messages and
send them to the correct recipients regards Michel Posseth [MCP] Show quoteHide quote "Dushyant" <Dushy***@discussions.microsoft.com> wrote in message news:589B5CF1-C20E-4AE2-B4DF-D10E47CDED72@microsoft.com... > Hi everyone, > > I am working on an application, where I need to mail some xml files as > attachments. I tried to use System.Diagnostic.Process class but it does > not > provide any help for attaching a file automatically. Then I resorted to > System. Web namespace but here also it does not take the SMTP server's > address automatically. I have to mention it. The application on which I am > working is a general purpose application and user might not be knowing the > server's address. Is there anyway through which it can take the server's > address automatically? > All responses are welcome. > Hi,
Not sure I understand exactly what you want, but I think I did something similar, emailing PDF's (Invoices) to customers from our database. I used an activex component called ADDEMAIL from Traysoft you can get a demo from http://www.traysoft.com/downloads.htm You can set the SMTP server and attachfiles in code. Paul Show quoteHide quote "Dushyant" <Dushy***@discussions.microsoft.com> wrote in message news:589B5CF1-C20E-4AE2-B4DF-D10E47CDED72@microsoft.com... > Hi everyone, > > I am working on an application, where I need to mail some xml files as > attachments. I tried to use System.Diagnostic.Process class but it does > not > provide any help for attaching a file automatically. Then I resorted to > System. Web namespace but here also it does not take the SMTP server's > address automatically. I have to mention it. The application on which I am > working is a general purpose application and user might not be knowing the > server's address. Is there anyway through which it can take the server's > address automatically? > All responses are welcome. > Hi Paul,
I am sorry I did not make my question clear. What I actually want - I do not want to mention SMTP server's address in my application. I want my application to take it on its own. Users, who will be using my application, might not be knowing their SMTP server's address but they should be able to mail these files to other persons by just mentioning their e-mail addresses. Can it be possible thorugh any way? Show quoteHide quote "Paul" wrote: > Hi, > Not sure I understand exactly what you want, but I think I did something > similar, emailing PDF's (Invoices) to customers from our database. > > I used an activex component called ADDEMAIL from Traysoft you can get a demo > from http://www.traysoft.com/downloads.htm > > You can set the SMTP server and attachfiles in code. > > Paul > > > "Dushyant" <Dushy***@discussions.microsoft.com> wrote in message > news:589B5CF1-C20E-4AE2-B4DF-D10E47CDED72@microsoft.com... > > Hi everyone, > > > > I am working on an application, where I need to mail some xml files as > > attachments. I tried to use System.Diagnostic.Process class but it does > > not > > provide any help for attaching a file automatically. Then I resorted to > > System. Web namespace but here also it does not take the SMTP server's > > address automatically. I have to mention it. The application on which I am > > working is a general purpose application and user might not be knowing the > > server's address. Is there anyway through which it can take the server's > > address automatically? > > All responses are welcome. > > > > > I'm not much of a mail expert, but the activex does allow you to send the
message directly from the users PC, without specifying a SMTP server. I'd be lying if I said I understand exactly how it works, but when you install the demo, theres an example program, both compiled and uncompiled that shows you it working. I have used the activex module in direct mode on our company network and the mail was delivered successfully, but I have also tried using it from home and my ISP (AOL) prevented the mail from being delivered as it suspected I was a spammer. Hope this helps. Paul Show quoteHide quote "Dushyant" <Dushy***@discussions.microsoft.com> wrote in message news:DB00569B-AD22-47CD-B5C4-D34C3953C281@microsoft.com... > Hi Paul, > > I am sorry I did not make my question clear. What I actually want - I do > not > want to mention SMTP server's address in my application. I want my > application to take it on its own. Users, who will be using my > application, > might not be knowing their SMTP server's address but they should be able > to > mail these files to other persons by just mentioning their e-mail > addresses. > Can it be possible thorugh any way? > > > > > > > "Paul" wrote: > >> Hi, >> Not sure I understand exactly what you want, but I think I did something >> similar, emailing PDF's (Invoices) to customers from our database. >> >> I used an activex component called ADDEMAIL from Traysoft you can get a >> demo >> from http://www.traysoft.com/downloads.htm >> >> You can set the SMTP server and attachfiles in code. >> >> Paul >> >> >> "Dushyant" <Dushy***@discussions.microsoft.com> wrote in message >> news:589B5CF1-C20E-4AE2-B4DF-D10E47CDED72@microsoft.com... >> > Hi everyone, >> > >> > I am working on an application, where I need to mail some xml files as >> > attachments. I tried to use System.Diagnostic.Process class but it does >> > not >> > provide any help for attaching a file automatically. Then I resorted to >> > System. Web namespace but here also it does not take the SMTP server's >> > address automatically. I have to mention it. The application on which I >> > am >> > working is a general purpose application and user might not be knowing >> > the >> > server's address. Is there anyway through which it can take the >> > server's >> > address automatically? >> > All responses are welcome. >> > >> >> >> Afaik
the only way you can acomplish this is handling the sending of the e-mail on a server that you control scenario user starts you program and sents e-mail , the message is send over http to a webservice , this webservice now sends the actuall message Show quoteHide quote "Dushyant" <Dushy***@discussions.microsoft.com> wrote in message news:DB00569B-AD22-47CD-B5C4-D34C3953C281@microsoft.com... > Hi Paul, > > I am sorry I did not make my question clear. What I actually want - I do > not > want to mention SMTP server's address in my application. I want my > application to take it on its own. Users, who will be using my > application, > might not be knowing their SMTP server's address but they should be able > to > mail these files to other persons by just mentioning their e-mail > addresses. > Can it be possible thorugh any way? > > > > > > > "Paul" wrote: > >> Hi, >> Not sure I understand exactly what you want, but I think I did something >> similar, emailing PDF's (Invoices) to customers from our database. >> >> I used an activex component called ADDEMAIL from Traysoft you can get a >> demo >> from http://www.traysoft.com/downloads.htm >> >> You can set the SMTP server and attachfiles in code. >> >> Paul >> >> >> "Dushyant" <Dushy***@discussions.microsoft.com> wrote in message >> news:589B5CF1-C20E-4AE2-B4DF-D10E47CDED72@microsoft.com... >> > Hi everyone, >> > >> > I am working on an application, where I need to mail some xml files as >> > attachments. I tried to use System.Diagnostic.Process class but it does >> > not >> > provide any help for attaching a file automatically. Then I resorted to >> > System. Web namespace but here also it does not take the SMTP server's >> > address automatically. I have to mention it. The application on which I >> > am >> > working is a general purpose application and user might not be knowing >> > the >> > server's address. Is there anyway through which it can take the >> > server's >> > address automatically? >> > All responses are welcome. >> > >> >> >> Dushyant wrote:
> Hi Paul, If you need to use the SMTP server of their provider you have almost no > > I am sorry I did not make my question clear. What I actually want - I do not > want to mention SMTP server's address in my application. I want my > application to take it on its own. Users, who will be using my application, > might not be knowing their SMTP server's address but they should be able to > mail these files to other persons by just mentioning their e-mail addresses. > Can it be possible thorugh any way? > way of knowing what that server will be. On my computer at home I don't use an MS mail or browser program, so how would you even know where to look for that information (you don't)? Like others have mentioned, you'll need to use a server that you control if you really don't want users to config the SMTP to use. That leaves a question. How would they not know that information if they have setup their mailprogram. If your program is for corporate use, you could always refer to the network administrator. Otherwise, let them contact their ISP. Or is the real reason you don't want the user entering this kind of information because you want to email information covertly without the knowledge of the user? I may be paranoid, but mail server info is supplied by any decent ISP, so it shouldn't be a problem for people to obtain this info. -- Rinze van Huizen C-Services Holland b.v |
|||||||||||||||||||||||