Open Outlook in Pocket ready to send an email

Hi, i need to know how to do this:

In my appliaction i have the email of a person and a text to send to that person. Throught a button i want to open Outlook, ready to send the email to that person with that text.

Does anyone know how can i do this

Thanks.



Answer this question

Open Outlook in Pocket ready to send an email

  • Quack!

    Nope. Sorry. I've never used the attach option.

  • Radith

    Try using tmail.exe on all OSs after PPC2000 (it's pmail before that. The command would be:

    string exeName = tmail.exe

    string args = "-to \"user@somewhere\" -body \"a message\"";

    You can read more about the tmail args here:

    http://www.nsbasic.com/ce/info/technotes/TN32.htm

    If you need help sending these to a process just holler and I can post some code for you.



  • the emrah

    Ok,thanks, i have this and works, except the attach, do you know why:

    string eTo = "";

    string eSubject = "";

    string eBody = "";

    string eAttachment="";

    ProcessStartInfo psi = new ProcessStartInfo();

    eTo = "mailto:" + "mymail";

    eSubject = " subject=" + "Email sent from NS Basic/CE on a 2002 device!";

    eBody = "&body=" + "Hello, NS Basic people!";

    eAttachment = "&attach=" + "\\Program Files\\HttpFileXfer\\1.ppt";

    psi.FileName = "\\Windows\\tmail.exe";

    psi.UseShellExecute = true;

    psi.Arguments = eTo + eSubject + eBody;

    Process.Start(psi);

    I think that is something related with the Arguments, because i can’t do this:

    psi.Arguments = eTo + eSubject + eAttachment + eBody;

    In this case body doesn't appears


  • ddawson04

    JR Lyon wrote:
    Nope. Sorry. I've never used the attach option.

    Ok, thanks anyway.

    Does anyone know how to do this


  • Selectis

    Hi, try out this.

    -attach "\My Documents\Personal\prueba.pdf" -to "prueba@prueba.es" -cc "prueba@prueba.es" -subject "Prueba" -body "Cuerpo" -service "MMS"

    It’s very important write -attach first, a the " (needs to be double)!!!

    The -service option allow you to use several mailbox (MMS, OUTLOOK)...




  • Open Outlook in Pocket ready to send an email