Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting attachment name using cdo.message

Status
Not open for further replies.

MattJames

Programmer
Joined
May 19, 2004
Messages
8
Location
GB
I have setup a loop to add attachments to an automated email.

These attachments can vary due to many different options.

When the emails are received however the name of the attachments are all changed to numbers rather than the actual filename that was sent out.

Code:
	'## Add Attachments to message
	If strAttachment <> "" Then
		Dim iBp3
		Set iBp3 = iMsg.GetInterface("IBodyPart")
		
		Dim arrAttachments
		arrAttachments = Split(strAttachment,",")
		
		Dim Element
		
		If isArray(arrAttachments) Then		
			For Each Element in arrAttachments
				Set iBp3 = iMsg.AddAttachment(DocPath & Element)
			Next
		End If
	End If
	'#############################

While the attachments are received by the users I know that someone important will not read them as they don't have real names.

Could anyone help?

Thanks.


-------------------------------
Matt James

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top