Why don't you just make an email class for your app and make the method call
on a background thread?
-- Peter
Site:
http://www.eggheadcafe.com
UnBlog: htp://petesbloggerama.blogspot.com
Short Urls & more:
http://ittyurl.net
"bienwell" wrote:
> Hi all,
>
> I want to call a new process that sends email from the ASP.NET program. This
> process runs in background and does not affect the performance of the
> ASP.NET page .What I did was to develop a console application and complile
> it to have an exe file. In ASP.NET page I call this exe file. Here is the
> code to call this process from the ASP.NET page
>
> Dim theTest As System.Diagnostics.Process = New System.Diagnostics.Process()
>
> Dim i As System.Diagnostics.ProcessStartInfo = New
> System.Diagnostics.ProcessStartInfo()
>
> i.FileName = Directory.GetCurrentDirectory.ToString & "\EmailApp.exe"
>
> i.Arguments = "email_address parameter1 parameter2"
>
> i.CreateNoWindow = True
>
> i.UseShellExecute = False
>
> theTest.StartInfo = i
>
> theTest.Start()
>
> and the error "The system cannot find the file specified" was pointed to
> this TheTestStart()
>
> Please provide the rcorrect source codes if you can.
>
> Thanks in advance.
>
>
>
>
>
>
>
>
>
>