Desktop email creation

Discussion in 'Questions (Windows Mobile)' started by LineCutter, May 12, 2009.

  1. LineCutter

    LineCutter Active Member Licensed User

    Is there a way to create an email using the desktop? I know about the Outlook library for the PPC & I know that there are mechanisms in windows for "Send To > Email", but I can't see a method in B4PPC.
     
  2. giannimaione

    giannimaione Well-Known Member Licensed User

    Hi LineCutter,

    can you use library OutlookDesktop.dll :confused:
     
  3. LineCutter

    LineCutter Active Member Licensed User

    According to the help file I have for the Outlook library:
    "The OutlookDesktop library is a "dummy" library which includes all the methods and properties of this library, but without any functionality. You can use the OutlookDesktop to help you write the code on the desktop."

    Is there a new library out that I have missed???
     
  4. giannimaione

    giannimaione Well-Known Member Licensed User

    Hi LineCutter,

    you are reason
    i am sorry:BangHead: for mistake
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    Yes, you can use the DesktopOnly library: DesktopOnly
     
  6. LineCutter

    LineCutter Active Member Licensed User

    Thanks Erel.

    I'm trying to provide a "brain dead user" program that creates & then emails a zip file. All is ready apart from the mailing. I'd like to access the mechanism that is used for bringing up the default email program ready to send an email, rather than try to get the user to enter the details for the SMTP server.

    Outlook & Thunderbird, to name but 2, are able to argue that they should be summoned for action by using the Send To context menu on a windows desktop. It's this that I'd like to mimic.

    :sign0085:

    [​IMG]
     

    Attached Files:

  7. Erel

    Erel Administrator Staff Member Licensed User

    You can use mailto, though I don't think you can add the attachment automatically:
    Code:
    Shell("mailto:aaa@aaa.com&subject=You have won the Lotto&body=body text","")
     
  8. LineCutter

    LineCutter Active Member Licensed User

    It seems that the RFCs don't allow for attachments in sendto:

    I found this:
    Code:
    I use something like this (sendto is the email addressee, test is the mail 
    text content, attach 
    is the attachment file).  Provided that there is a MAPI 
    client program defined on the user
    's system, it seems to work perfectly...

    10070    Main.MAPISession1.DownLoadMail = False
    10080    Main.MAPISession1.LogonUI = True
    10090    Main.MAPISession1.SignOn
    10100    Main.MAPISession1.NewSession = True
    10110
    10120    Main.MAPIMessages1.SessionID = Main.MAPISession1.SessionID
    10130
    10140    Main.MAPIMessages1.Compose
    10150    Main.MAPIMessages1.RecipAddress = sendto
    10160    Main.MAPIMessages1.AddressResolveUI = True
    10170    Main.MAPIMessages1.ResolveName
    10180    Main.MAPIMessages1.MsgSubject = Subject
    10190    If attach <> "" Then
    10200       Main.MAPIMessages1.AttachmentPathName = attach
    10210    End If
    10220    Main.MAPIMessages1.MsgNoteText = text
    10240    Main.MAPIMessages1.Send True
    10250    Main.MAPISession1.SignOff
    However, I don't think that I can make anything usable of it in B4PPC.
    Thanks for the pointers!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice