?
=?ISO-8859-1?Q?Jacobo_Rodr=EDguez_Villar?=
Hello,
I'm trying to send EmailMessages with VB.NET and compact framework v2.0,
using Visual Studio 2005, but during runtime, the constructor call,
causes the exception that appears in the subject of this mail. The code
is fairy simple.
Imports Microsoft.WindowsMobile.PocketOutlook
Imports System.IO
Public Class MailSender
Private mail As EmailMessage
Private destination As String
Private subject As String
Private originFolder As String
Private destinationFolder As String
Public Sub New(ByVal dest As String, ByVal subj As String, ByVal
originF As String, ByVal destinationF As String)
Try
mail = New EmailMessage()
destination = dest
subject = subj
originFolder = originF
destinationFolder = destinationF
Catch e As Exception
InformationLog.WriteLine("Error: en la creacion de
EmailMessage (" + e.Message + ")")
End Try
End Sub
There are more code but isn't related with this issue. The exception is
launched in the line "mail = New EmailMessage()", and I'm really lost.
I've checked for PocketOutlook.dll in the PDA and is there. I really
appreciate any light in this matter.
Thanks,
Jacobo.
I'm trying to send EmailMessages with VB.NET and compact framework v2.0,
using Visual Studio 2005, but during runtime, the constructor call,
causes the exception that appears in the subject of this mail. The code
is fairy simple.
Imports Microsoft.WindowsMobile.PocketOutlook
Imports System.IO
Public Class MailSender
Private mail As EmailMessage
Private destination As String
Private subject As String
Private originFolder As String
Private destinationFolder As String
Public Sub New(ByVal dest As String, ByVal subj As String, ByVal
originF As String, ByVal destinationF As String)
Try
mail = New EmailMessage()
destination = dest
subject = subj
originFolder = originF
destinationFolder = destinationF
Catch e As Exception
InformationLog.WriteLine("Error: en la creacion de
EmailMessage (" + e.Message + ")")
End Try
End Sub
There are more code but isn't related with this issue. The exception is
launched in the line "mail = New EmailMessage()", and I'm really lost.
I've checked for PocketOutlook.dll in the PDA and is there. I really
appreciate any light in this matter.
Thanks,
Jacobo.