|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to use my default mail client to mail any file?Hi all,
I am working on an application, which generate xml files. Now, I want to send these xml files as attachments to other persons using my default mail client, like mozilla thunderbird. I want to send these files by just specifying the mail address of the required person.
http://www.codeproject.com/vb/net/SendMail.asp
--
Show quote
Hide quote
Get a powerful web, database, application, and email hosting with KJM Solutions http://www.kjmsolutions.com "Dushyant" <Dushy***@discussions.microsoft.com> wrote in message
news:2CB300BA-1CCA-40A0-A185-93342FA0A31E@microsoft.com... > Hi all, > > I am working on an application, which generate xml files. Now, I want to > send these xml files as attachments to other persons using my default > client, like mozilla thunderbird. I want to send these files by just > specifying the mail address of the required person. "Dushyant" <Dushy***@discussions.microsoft.com> schrieb: AFAIK there is no general solution which will work with all mail clients. > I am working on an application, which generate xml files. Now, I want to > send these xml files as attachments to other persons using my default > client, like mozilla thunderbird. I want to send these files by just > specifying the mail address of the required person. However, maybe using .NET's built-in mailing classes to send the mail is an option (.NET 1.*: 'System.Web.Mail', .NET 2.0: 'System.Net.Mail'). Additional information: <URL:http://www.systemwebmail.net/> <URL:http://www.systemnetmail.net/> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> I tried this way by using System.Web namespace but the problem that I am
facing is that it does not take the mail server address by default. Every time I have to mention my mail server's address whenever I want to send mails. Is there anyway, by which it can automatically take mail server's address. Show quoteHide quote "Herfried K. Wagner [MVP]" wrote: > "Dushyant" <Dushy***@discussions.microsoft.com> schrieb: > > I am working on an application, which generate xml files. Now, I want to > > send these xml files as attachments to other persons using my default > > client, like mozilla thunderbird. I want to send these files by just > > specifying the mail address of the required person. > > AFAIK there is no general solution which will work with all mail clients. > However, maybe using .NET's built-in mailing classes to send the mail is an > option (.NET 1.*: 'System.Web.Mail', .NET 2.0: 'System.Net.Mail'). > Additional information: > > <URL:http://www.systemwebmail.net/> > <URL:http://www.systemnetmail.net/> > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://classicvb.org/petition/> > > Hi Dush,
Are you using ASP.NET or WinForms? -- Show quoteHide quoteGet a powerful web, database, application, and email hosting with KJM Solutions http://www.kjmsolutions.com "Dushyant" <Dushy***@discussions.microsoft.com> wrote in message news:8CBF56E0-61B6-4C58-8E3C-36593E534648@microsoft.com... >I tried this way by using System.Web namespace but the problem that I am > facing is that it does not take the mail server address by default. Every > time I have to mention my mail server's address whenever I want to send > mails. Is there anyway, by which it can automatically take mail server's > address. > > "Herfried K. Wagner [MVP]" wrote: > >> "Dushyant" <Dushy***@discussions.microsoft.com> schrieb: >> > I am working on an application, which generate xml files. Now, I want >> > to >> > send these xml files as attachments to other persons using my default >> > client, like mozilla thunderbird. I want to send these files by just >> > specifying the mail address of the required person. >> >> AFAIK there is no general solution which will work with all mail clients. >> However, maybe using .NET's built-in mailing classes to send the mail is >> an >> option (.NET 1.*: 'System.Web.Mail', .NET 2.0: 'System.Net.Mail'). >> Additional information: >> >> <URL:http://www.systemwebmail.net/> >> <URL:http://www.systemnetmail.net/> >> >> -- >> M S Herfried K. Wagner >> M V P <URL:http://dotnet.mvps.org/> >> V B <URL:http://classicvb.org/petition/> >> >> Hi,
I am using WinForms. I am sorry I should have mentioned it earlier. It's a Windows application. Show quoteHide quote "vbnetdev" wrote: > Hi Dush, > > Are you using ASP.NET or WinForms? > > > -- > Get a powerful web, database, application, and email hosting with KJM > Solutions > http://www.kjmsolutions.com > > > > "Dushyant" <Dushy***@discussions.microsoft.com> wrote in message > news:8CBF56E0-61B6-4C58-8E3C-36593E534648@microsoft.com... > >I tried this way by using System.Web namespace but the problem that I am > > facing is that it does not take the mail server address by default. Every > > time I have to mention my mail server's address whenever I want to send > > mails. Is there anyway, by which it can automatically take mail server's > > address. > > > > "Herfried K. Wagner [MVP]" wrote: > > > >> "Dushyant" <Dushy***@discussions.microsoft.com> schrieb: > >> > I am working on an application, which generate xml files. Now, I want > >> > to > >> > send these xml files as attachments to other persons using my default > >> > client, like mozilla thunderbird. I want to send these files by just > >> > specifying the mail address of the required person. > >> > >> AFAIK there is no general solution which will work with all mail clients. > >> However, maybe using .NET's built-in mailing classes to send the mail is > >> an > >> option (.NET 1.*: 'System.Web.Mail', .NET 2.0: 'System.Net.Mail'). > >> Additional information: > >> > >> <URL:http://www.systemwebmail.net/> > >> <URL:http://www.systemnetmail.net/> > >> > >> -- > >> M S Herfried K. Wagner > >> M V P <URL:http://dotnet.mvps.org/> > >> V B <URL:http://classicvb.org/petition/> > >> > >> > > > best I could do.....
Dim regKey As RegistryKey Dim sSmtpServer As String Try regKey = Registry.CurrentUser.OpenSubKey _ ("Software\Microsoft\Internet Account Manager", False) Dim sMailAccount As String _ = regKey.GetValue ("Default Mail Account") regKey.Close() regKey = Registry.CurrentUser.OpenSubKey _ ("Software\Microsoft\Internet Account Manager" _ & "\Accounts\" & sMailAccount, False) sSmtpServer = regKey.GetValue ("SMTP Server") Catch ex As Exception MsgBox(ex.ToString) Finally If Not regKey Is Nothing Then _ regKey.Close() End Try -- Show quoteHide quoteGet a powerful web, database, application, and email hosting with KJM Solutions http://www.kjmsolutions.com "Dushyant" <Dushy***@discussions.microsoft.com> wrote in message news:108A8F77-2661-4EF8-8456-0288CD0947F3@microsoft.com... > Hi, > > I am using WinForms. I am sorry I should have mentioned it earlier. It's a > Windows application. > > > "vbnetdev" wrote: > >> Hi Dush, >> >> Are you using ASP.NET or WinForms? >> >> >> -- >> Get a powerful web, database, application, and email hosting with KJM >> Solutions >> http://www.kjmsolutions.com >> >> >> >> "Dushyant" <Dushy***@discussions.microsoft.com> wrote in message >> news:8CBF56E0-61B6-4C58-8E3C-36593E534648@microsoft.com... >> >I tried this way by using System.Web namespace but the problem that I am >> > facing is that it does not take the mail server address by default. >> > Every >> > time I have to mention my mail server's address whenever I want to send >> > mails. Is there anyway, by which it can automatically take mail >> > server's >> > address. >> > >> > "Herfried K. Wagner [MVP]" wrote: >> > >> >> "Dushyant" <Dushy***@discussions.microsoft.com> schrieb: >> >> > I am working on an application, which generate xml files. Now, I >> >> > want >> >> > to >> >> > send these xml files as attachments to other persons using my >> >> > default >> >> > client, like mozilla thunderbird. I want to send these files by just >> >> > specifying the mail address of the required person. >> >> >> >> AFAIK there is no general solution which will work with all mail >> >> clients. >> >> However, maybe using .NET's built-in mailing classes to send the mail >> >> is >> >> an >> >> option (.NET 1.*: 'System.Web.Mail', .NET 2.0: 'System.Net.Mail'). >> >> Additional information: >> >> >> >> <URL:http://www.systemwebmail.net/> >> >> <URL:http://www.systemnetmail.net/> >> >> >> >> -- >> >> M S Herfried K. Wagner >> >> M V P <URL:http://dotnet.mvps.org/> >> >> V B <URL:http://classicvb.org/petition/> >> >> >> >> >> >> >>
HttpWebRequest using Certificates
Pulling specific words from a string Basic question Enumerate members of Administrators Group (AD) MenuItem.RadioCheck Radio Button Grouping in vb/VS 2005 Web service question Accessing Mdi Child Form Control form another one How to pass parameter? error "concurency violation" |
|||||||||||||||||||||||