ogir
asked on
I send a attachment in mail on VB and user receives without extension of file.
My problem is that I send a mail within attachment (example: file.doc), the user receives this mail with file but this file without it extension, only "file". The user doesnt knows what type is this file, if is a Word file or a Excel file or other file.
The code of Vb mail:
Me.MAPIMessages1.Attachmen tIndex = Me.MAPIMessages1.Attachmen tCount
Me.MAPIMessages1.Attachmen tType = 0
Me.MAPIMessages1.Attachmen tPosition = Me.MAPIMessages1.Attachmen tIndex
Me.MAPIMessages1.Attachmen tPathName = "c:\sendmail\pedido.doc"
Me.MAPIMessages1.Attachmen tName = "Pedido.Doc"
Me.MAPIMessages1.Send
The code of Vb mail:
Me.MAPIMessages1.Attachmen
Me.MAPIMessages1.Attachmen
Me.MAPIMessages1.Attachmen
Me.MAPIMessages1.Attachmen
Me.MAPIMessages1.Attachmen
Me.MAPIMessages1.Send
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
OK
Me.MAPIMessages1.Attachmen
' position must be at the end of the message body - 1, read the help file
Me.MAPIMessages1.Attachmen
Me.MAPIMessages1.Attachmen
'get rid of this
'Me.MAPIMessages1.Attachme