.NET Components for Mobility

Send E-mail

Last post 11-25-2008 5:41 AM by PeterFoot. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-19-2008 6:50 AM

    Send E-mail

    Hi,

    I've a problem with sending e-mail with InTheHand.WindowsMobile.PocketOutlook.OutlookSession, I can't send e-mail using configured account, the library use only default e-mail account (Posta Outlook) when I try to send it with my account.

    If I use Microsoft.WindowsMobile.PocketOutlook it works fine, attached Here i send the sample code i've used

    Dim sessione As New InTheHand.WindowsMobile.PocketOutlook.OutlookSession
    'Dim sessione As New Microsoft.WindowsMobile.PocketOutlook.OutlookSession
    Dim email As New InTheHand.WindowsMobile.PocketOutlook.EmailMessage
    'Dim email As New Microsoft.WindowsMobile.PocketOutlook.EmailMessage

    email.Subject = "Lat: " & latitudine & "|" & "Lon: " & longitudine & "|" & "Risp: " & risposta
    email.BodyText = testo

    email.To.Add(New InTheHand.WindowsMobile.PocketOutlook.Recipient(indirizzoemail))
    'email.To.Add(New Microsoft.WindowsMobile.PocketOutlook.Recipient(indirizzoemail))

    If Not IsNothing(emailagg) Then
          If emailagg <> "" Then email.CC.Add(New InTheHand.WindowsMobile.PocketOutlook.Recipient(emailagg))
          'If emailagg <> "" Then email.CC.Add(New Microsoft.WindowsMobile.PocketOutlook.Recipient(emailagg))
    End If

    'al momento non faccio la selezione dell'account ma lo setto io fisso (andrà gestita la possibilità di selezionare quello che si vuole utilizzare)
    email.Send(sessione.EmailAccounts.Item(account))
    'lacio il send - receive
    InTheHand.WindowsMobile.PocketOutlook.MessagingApplication.Synchronize(sessione.EmailAccounts.Item(account))
    'Microsoft.WindowsMobile.PocketOutlook.MessagingApplication.Synchronize(sessione.EmailAccounts.Item(account))

    Please let me know something (sorry for my english)

    I'm sorry... the problem it's only with the evaluation version 3.2 (I use it for another problem in changing Sms status) but the complete version is ok...  

  • 11-25-2008 5:41 AM In reply to

    Re: Send E-mail

    Yes, this was an issue with the 3.2 release which was resolved in 3.3

    Peter

Page 1 of 1 (2 items)
Copyright © 2001-2012 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy. OrcsWeb's Windows Cloud Server Hosting