Hi
I am using the CDo.Message object to send out emails with attachements. This works great. My problem is when I receive the email (google mail inbox), the attachments shows it is a word document (uploaded on the server as newsletter.doc) but the name of the document shows "noname".
I would like to see the email attachment with its proper name if possible (not noname). The attachments is there and is the correct document. I have used the standard code of:
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = "me@my.com"
objMessage.To = "test@someone.com"
objMessage.TextBody = "This is some sample message text."
objMessage.AddAttachment "c:\temp\newsletter.doc"
objMessage.Send
It all works fine apart from the attachment having "noname" on the receiving end.
Could anybody point out if I have missed a parameter or doing something wrong?
Many thanks to anyone who can offer help
Best regards
Sean.
I am using the CDo.Message object to send out emails with attachements. This works great. My problem is when I receive the email (google mail inbox), the attachments shows it is a word document (uploaded on the server as newsletter.doc) but the name of the document shows "noname".
I would like to see the email attachment with its proper name if possible (not noname). The attachments is there and is the correct document. I have used the standard code of:
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = "me@my.com"
objMessage.To = "test@someone.com"
objMessage.TextBody = "This is some sample message text."
objMessage.AddAttachment "c:\temp\newsletter.doc"
objMessage.Send
It all works fine apart from the attachment having "noname" on the receiving end.
Could anybody point out if I have missed a parameter or doing something wrong?
Many thanks to anyone who can offer help
Best regards
Sean.