D
David
Dear All
I am having problems with mapi sending faxes with Outlook 2000 sp3, xp and
2003. Early version are ok. I am getting to a point where I think it may be
a security issue. Sending a normal fax is ok, but if I attach a *.tif file
it comes up undeliverable with the message
The Microsoft Fax transport failed to deliver the message to the recipient.
Not all attachments can be rendered.
Here is my code, I have changed the fax number.
objSession = CreateObject("Mapi.Session")
objSession.Logon ()
MESSAGEBOX("CDO version installed is "+trans(objSession.Version))
objMessage = objSession.Outbox.Messages.Add
objMessage.Subject = "Test"
objMessage.Text = "This is a test with an attachment"
objRecipient = objMessage.Recipients.Add
objRecipient.Name = "[FAX:5555555555]"
objRecipient.Type = 1
objRecipient.Resolve ()
objAttachment = objMessage.Attachments.Add()
objAttachment.Position = 0
objAttachment.Type = 1
objAttachment.ReadFromFile("C:\B.TIF")
objAttachment.Source = "C:\B.TIF"
objAttachment.Name = "B.TIF"
objMessage.Send ()
objSession.Logoff
Thank you for any help
David
Anagram Systems Limited
work email: (e-mail address removed)
I am having problems with mapi sending faxes with Outlook 2000 sp3, xp and
2003. Early version are ok. I am getting to a point where I think it may be
a security issue. Sending a normal fax is ok, but if I attach a *.tif file
it comes up undeliverable with the message
The Microsoft Fax transport failed to deliver the message to the recipient.
Not all attachments can be rendered.
Here is my code, I have changed the fax number.
objSession = CreateObject("Mapi.Session")
objSession.Logon ()
MESSAGEBOX("CDO version installed is "+trans(objSession.Version))
objMessage = objSession.Outbox.Messages.Add
objMessage.Subject = "Test"
objMessage.Text = "This is a test with an attachment"
objRecipient = objMessage.Recipients.Add
objRecipient.Name = "[FAX:5555555555]"
objRecipient.Type = 1
objRecipient.Resolve ()
objAttachment = objMessage.Attachments.Add()
objAttachment.Position = 0
objAttachment.Type = 1
objAttachment.ReadFromFile("C:\B.TIF")
objAttachment.Source = "C:\B.TIF"
objAttachment.Name = "B.TIF"
objMessage.Send ()
objSession.Logoff
Thank you for any help
David
Anagram Systems Limited
work email: (e-mail address removed)