Could some one give me a sample code of how to use CreateProcess to launch
Tmail.exe.....
with the TO field filled with TO: sup...@xxx.com
thannk you very much
--
Alex Feinman
---
Visit http://www.opennetcf.org
" A_PK" <pk...@hotmail.com> wrote in message
news:OJxoWNp...@TK2MSFTNGP15.phx.gbl...
CreateProcess("tmail.exe",
"mailto:sup...@xxx.com?subject=This is subject&body=messagebody");
Cheers,
Arun
i type the whole string
CreateProcess("tmail.exe", "mailto:supp...@xxx.com?subject=This is
subject&body=messagebody")
but the CreateProces got error........just wonder what thing should I
imports first.
and follow Alex's suggestion:
Process.Start("mailto:sup...@xxx.com")
For more information see:
http://www.opennetcf.org/SourceBrowse/view.aspx?f=d:/sites/OpenNETCF/InetPub/wwwroot/Source/OpenNETCF/Diagnostics/Process.cs
Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
PK wrote:
> Are there any dll that I should imports....
>
> i type the whole string
> CreateProcess("tmail.exe", "mailto:supp...@xxx.com?subjec負=This is
just wonder is i want to get the subject and body filled as well ?
sorry .......i should have asked them all together...
Long back I have used CreateProcess in a sample, you need to try it
like this,
OpenNETCF.WinAPI.Core.CreateProcess("tmail.exe",
"mailto:supp...@xxx.com?subject=This is subject&body=messagebody");
Try to check in Opennetcf sdf for any samples available.
Hope this helps,
Cheers,
Arun.
www.innasite.com
Did you mean OpenNETCF.Win32.Core.CreateProcess instead of
OpenNETCF.WinAPI.Core.CreateProcess? If so it is an obsolete method and
must be replaced with OpenNETCF.Diagnostics.Process.Start.
Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
Arun wrote:
> Hi,
>
> Long back I have used CreateProcess in a sample, you need to try it
> like this,
>
> OpenNETCF.WinAPI.Core.CreateProcess("tmail.exe",
> "mailto:supp...@xxx.com?subjec負=This is subject&body=messagebody");
ProcessStartInfo psi = new ProcessStartInfo();
psi.UseShellExecute = false;
psi.FileName = FileName;
psi.Arguments = CommandLine;
OpenNETCF.Diagnostics.Process.Start(psi);
Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
How about Attachment and Subject ? How could I attach my attachment, have a
Subject predefined ?
what is the command line look like ?
Process.Start("mailto:sup...@xxx.com?subject=Subjectg Tiltle&attachment
???or what ?
pls guide me....
"Sergey Bogdanov" <sergey....@gmail.com> wrote in message
news:OsB3J5M...@TK2MSFTNGP15.phx.gbl...
> Imports OpenNETCF.Diagnostics
>
> and follow Alex's suggestion:
>
> Process.Start("mailto:sup...@xxx.com")
>
> For more information see:
> http://www.opennetcf.org/SourceBrowse/view.aspx?f=d:/sites/OpenNETCF/InetPub/wwwroot/Source/OpenNETCF/Diagnostics/Process.cs
>
> Best regards,
> Sergey Bogdanov
> http://www.sergeybogdanov.com
>
>
> PK wrote:
>> Are there any dll that I should imports....
>>
>> i type the whole string
>> CreateProcess("tmail.exe", "mailto:supp...@xxx.com?subject=This is
http://spaces.msn.com/members/staceyw/Blog/cns!1pnsZpX0fPvDxLKC6rAAhLsQ!361.entry
--
Sergey Bogdanov
http://www.sergeybogdanov.com