|
-
Jan 10th, 2001, 02:11 AM
#1
Thread Starter
New Member
the app send an email message but it won't attach a file to the email. Here is the code I am using to attach the file.
I don't know if I am using this right or not.
Dim objSession As MAPI.Session
Dim objMessage As MAPI.Message
'create a message and fill in its properties
Set objMessage = objSession.Outbox.Messages.Add
objMessage.Subject = txtSubject.Text
objMessage.Text = txtMessage.Text
objMessage.Attachments.Add "C:\file.dat"
-
Jan 10th, 2001, 02:58 AM
#2
Adding attachment
Hi ,
I think you should add the following code to your current code:
objMessage.Update
This is because you did something new to the current message
Michiel
-
Jan 10th, 2001, 03:14 AM
#3
Thread Starter
New Member
operation failed
when I try and open the email doc I get the following error.
Can't Open this mail, the operation failed.
Clueless right know as to what the problem is
-
Jan 10th, 2001, 03:22 AM
#4
Opening Email
Can you be a little bit more specific?
-
Jan 10th, 2001, 03:26 AM
#5
Fanatic Member
-
Jan 10th, 2001, 04:17 AM
#6
Thread Starter
New Member
code don't work
I tried the example but she still broken, except know I am getting a runtime error, 486 - object does'nt support this method....
-
Jan 10th, 2001, 04:33 AM
#7
Fanatic Member
-
Jan 10th, 2001, 04:35 AM
#8
Thread Starter
New Member
-
Jan 10th, 2001, 04:42 AM
#9
Fanatic Member
-
Jan 10th, 2001, 04:44 AM
#10
Fanatic Member
-
Jan 10th, 2001, 05:01 AM
#11
Thread Starter
New Member
postion no...
what is the postion number for though???
-
Jan 10th, 2001, 05:07 AM
#12
Fanatic Member
-
Jan 10th, 2001, 05:49 AM
#13
Thread Starter
New Member
yep thank
Thank,
The code worked like a dream, one question though
where can i get my hand on a mapi tutorial.
-
Jan 10th, 2001, 06:18 AM
#14
Fanatic Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|