I have coded some logic (CDO 1.21) to send emails from my application and this works fine under Windows XP with Outlook. However, my hope was that the code would work equally well for Outlook Express and under any Windows flavour from Windows 98 onwards.
An extract from code is as follows:
If MailLink Is Nothing Then
Set MailLink = CreateObject("MAPI.Session"
MailLink.Logon
End If
Set Msg = MailLink.Outbox.Messages.Add
Set WhoTo = Msg.Recipients.Add(EmlAddress)
Msg.Subject = EmlSubject
Msg.Text = EmlText
Msg.Attachments.Add NewName, , , NewName
Msg.Update
It fails creating the MAPI session when Outlook express is default email client("current mail client cannot fulfill the messaging request"
. Unless I can resolve this issue, there is little point in testing under other Windows versions. Am I being too ambitious?
Thanks in advance.
An extract from code is as follows:
If MailLink Is Nothing Then
Set MailLink = CreateObject("MAPI.Session"

MailLink.Logon
End If
Set Msg = MailLink.Outbox.Messages.Add
Set WhoTo = Msg.Recipients.Add(EmlAddress)
Msg.Subject = EmlSubject
Msg.Text = EmlText
Msg.Attachments.Add NewName, , , NewName
Msg.Update
It fails creating the MAPI session when Outlook express is default email client("current mail client cannot fulfill the messaging request"

Thanks in advance.