|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
web reference to system.web.dllI'm writing a VB .net 2003 windows application and want to send email
from it. I've tried System.Diagnostics.Process.Start("mailto:?Subject=" & TextBox1.Text.Trim & "&Body=" & TextBox3.Text.Trim) but it doesn't take a very large body. I found an example http://dotnet.mvps.org/dotnet/faqs/?id=openfileappwebpage that is credited to Fergus Cooney, Cor Ligthert and Herfried Wagner and I'm trying to test it. I can't figure out how to add the web reference to system.web.dll that they say needs to be added. I go to add web reference by can't figure out how to pull it up. Any help would be appreciated. cj,
Click the tab Project in top. Clikk than the tab add references Click than at System.Web in the Net box Click the Add And write in top of your program Imports System.Web Something as this is possible your problem Cor Show quoteHide quote "cj" <cj@nospam.nospam> schreef in bericht news:%23JreDZSbGHA.4544@TK2MSFTNGP02.phx.gbl... > I'm writing a VB .net 2003 windows application and want to send email from > it. I've tried > > System.Diagnostics.Process.Start("mailto:?Subject=" & TextBox1.Text.Trim & > "&Body=" & TextBox3.Text.Trim) > > but it doesn't take a very large body. > > I found an example > http://dotnet.mvps.org/dotnet/faqs/?id=openfileappwebpage that is > credited to Fergus Cooney, Cor Ligthert and Herfried Wagner and I'm trying > to test it. I can't figure out how to add the web reference to > system.web.dll that they say needs to be added. I go to add web reference > by can't figure out how to pull it up. > > Any help would be appreciated. Yea, I tried to cancel the question. I was trying to add a web
reference and I just needed to add a reference. I haven't tested the routine yet, but it is recognizing system.web.httputility now. Cor Ligthert [MVP] wrote: Show quoteHide quote > cj, > > Click the tab Project in top. > Clikk than the tab add references > Click than at System.Web in the Net box > Click the Add > > And write in top of your program > Imports System.Web > > Something as this is possible your problem > > Cor > > "cj" <cj@nospam.nospam> schreef in bericht > news:%23JreDZSbGHA.4544@TK2MSFTNGP02.phx.gbl... >> I'm writing a VB .net 2003 windows application and want to send email from >> it. I've tried >> >> System.Diagnostics.Process.Start("mailto:?Subject=" & TextBox1.Text.Trim & >> "&Body=" & TextBox3.Text.Trim) >> >> but it doesn't take a very large body. >> >> I found an example >> http://dotnet.mvps.org/dotnet/faqs/?id=openfileappwebpage that is >> credited to Fergus Cooney, Cor Ligthert and Herfried Wagner and I'm trying >> to test it. I can't figure out how to add the web reference to >> system.web.dll that they say needs to be added. I go to add web reference >> by can't figure out how to pull it up. >> >> Any help would be appreciated. > > Seems I do need help. Just FYI the procedure I'm using is at the bottom
of the article at http://dotnet.mvps.org/dotnet/faqs/?id=openfileappwebpage I cut and pasted it into my program and for testing call the procedure with the command: StartDefaultMail(TextBox1.Text.Trim, TextBox2.Text.Trim, TextBox3.Text.Trim) I tested with textbox3.text = "This is only a test" and it worked except in the email body it looked like "This+is+only+a+test". What's up with that? But I really need to send a long message. once I get a couple thousand characters in textbox3 it throws and exception and will not start outlook. Is there a way to handle long messages? Cor Ligthert [MVP] wrote: Show quoteHide quote > cj, > > Click the tab Project in top. > Clikk than the tab add references > Click than at System.Web in the Net box > Click the Add > > And write in top of your program > Imports System.Web > > Something as this is possible your problem > > Cor > > "cj" <cj@nospam.nospam> schreef in bericht > news:%23JreDZSbGHA.4544@TK2MSFTNGP02.phx.gbl... >> I'm writing a VB .net 2003 windows application and want to send email from >> it. I've tried >> >> System.Diagnostics.Process.Start("mailto:?Subject=" & TextBox1.Text.Trim & >> "&Body=" & TextBox3.Text.Trim) >> >> but it doesn't take a very large body. >> >> I found an example >> http://dotnet.mvps.org/dotnet/faqs/?id=openfileappwebpage that is >> credited to Fergus Cooney, Cor Ligthert and Herfried Wagner and I'm trying >> to test it. I can't figure out how to add the web reference to >> system.web.dll that they say needs to be added. I go to add web reference >> by can't figure out how to pull it up. >> >> Any help would be appreciated. > > That is essentially a QueryString.
Querystring is generally going to be limited to < 1024 total characters. Show quoteHide quote "cj" <cj@nospam.nospam> wrote in message news:%23JreDZSbGHA.4544@TK2MSFTNGP02.phx.gbl... > I'm writing a VB .net 2003 windows application and want to send email from > it. I've tried > > System.Diagnostics.Process.Start("mailto:?Subject=" & TextBox1.Text.Trim & > "&Body=" & TextBox3.Text.Trim) > > but it doesn't take a very large body. > > I found an example > http://dotnet.mvps.org/dotnet/faqs/?id=openfileappwebpage that is > credited to Fergus Cooney, Cor Ligthert and Herfried Wagner and I'm trying > to test it. I can't figure out how to add the web reference to > system.web.dll that they say needs to be added. I go to add web reference > by can't figure out how to pull it up. > > Any help would be appreciated. So there's no way around the 1024 char body?
Jim Hughes wrote: Show quoteHide quote > That is essentially a QueryString. > > Querystring is generally going to be limited to < 1024 total characters. > > "cj" <cj@nospam.nospam> wrote in message > news:%23JreDZSbGHA.4544@TK2MSFTNGP02.phx.gbl... >> I'm writing a VB .net 2003 windows application and want to send email from >> it. I've tried >> >> System.Diagnostics.Process.Start("mailto:?Subject=" & TextBox1.Text.Trim & >> "&Body=" & TextBox3.Text.Trim) >> >> but it doesn't take a very large body. >> >> I found an example >> http://dotnet.mvps.org/dotnet/faqs/?id=openfileappwebpage that is >> credited to Fergus Cooney, Cor Ligthert and Herfried Wagner and I'm trying >> to test it. I can't figure out how to add the web reference to >> system.web.dll that they say needs to be added. I go to add web reference >> by can't figure out how to pull it up. >> >> Any help would be appreciated. > > Ok, finally found something and it seems to vary with email client but
there is a max to the length of the string you use to start the email program. cj wrote: Show quoteHide quote > So there's no way around the 1024 char body? > > Jim Hughes wrote: >> That is essentially a QueryString. >> >> Querystring is generally going to be limited to < 1024 total characters. >> >> "cj" <cj@nospam.nospam> wrote in message >> news:%23JreDZSbGHA.4544@TK2MSFTNGP02.phx.gbl... >>> I'm writing a VB .net 2003 windows application and want to send email >>> from it. I've tried >>> >>> System.Diagnostics.Process.Start("mailto:?Subject=" & >>> TextBox1.Text.Trim & "&Body=" & TextBox3.Text.Trim) >>> >>> but it doesn't take a very large body. >>> >>> I found an example >>> http://dotnet.mvps.org/dotnet/faqs/?id=openfileappwebpage that is >>> credited to Fergus Cooney, Cor Ligthert and Herfried Wagner and I'm >>> trying to test it. I can't figure out how to add the web reference >>> to system.web.dll that they say needs to be added. I go to add web >>> reference by can't figure out how to pull it up. >>> >>> Any help would be appreciated. >> >>
hierachical related data in datatset
VB2005 Pro Edition--Data Sources window is disabled when viewing forms Binding to an enumeration Multithreading Problem Traversing a Collection evaluate or transform or ??? Accessing one dimension of a multidimensional array Desperately needing direction with EncoderParameters and saving images under different compression/q Maximum Form Height? VB.net + SQLDMO = slower than VB6 !!! |
|||||||||||||||||||||||