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).