• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 147
  • Last Modified:

Using Outlook to send mail

I have figured out how to send an email with an attachment, but I have a problem handling an invalid address. Is there a way to trap the invalid address error from Outlook and open the Outlook Global Address book for the user to select another address??
  • 2
  • 2
1 Solution
I do not have an answer to your question but is there any way you can post the code for sending an attachment?  I have been trying to do that, with no luck.

I will even give you points if it works!  I don't have much points, but will give you what I've got.

Thank you.


Willem Sevenster
are you using MAPI controls by any chance??
jcorbinAuthor Commented:
Well I havent tried using the MAPI controls. I am using the Outlook 98 type library to get the Outlook objects. Only because it is a little faster and you dont have to distro the extra controls. But at this point I am open to just about any suggestion.

the following code works for me.give it a try with MAPI controls

'MSes is the MapiSession control and
'MMes is the MAPIMessages Control.

MMes.SessionID = MSes.SessionID
With MMes
     .MsgIndex = -1
     Do While .RecipCount > 0
         .RecipIndex = 0
         .Delete 1
     .RecipIndex = 0
     .RecipAddress = "J"
     .AddressResolveUI = True
     .MsgType = "IPM.Note.VersionControl"
     .MsgSubject = " resolving ambiguous names "
     .MsgNoteText = " test message "
     .Send True
End With

let me know if this helps,
jcorbinAuthor Commented:
Thanks, worked great
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now