Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem With Attachment Type in my CDO code

0 views
Skip to first unread message

Jarrett Lee

unread,
Jan 13, 2002, 2:04:45 PM1/13/02
to
Hi folks, first post here!

Im a total code know - not. I hack my way through stuff and have no
formal training. Im here on the weekend finishing some email code
which I received assistance from our head IT guy on.


He gave me the following code to go into a variable folder (workorder)
and pull out a .jpg file to attach.

However, the file arrives at my inbox as "uknown" with a name like
"att143.tmp".


Any tips on how to modify this code (exactly - remember, Im untrained)
to attach the jpg file correctly? See below:

Set objAttachment2 = objMsg.Attachments.Add
With objAttachment2
.Position = 0
.Source = "D:\Post Failure Photos\" & WO & "\PIC00002.jpg"
.Type = CdoFileData
End With


Thanks in Advance! - Jarrett

(PS I cut out the variable declarations etc as Im assuming the error
is in the code snip above).

0 new messages