D
David
I am trying to send a fax with outlook xp(2002) and Visual FoxPro 7 on
Win98 machine. It works fine when I send an fax attachment in Outlook using
[FAX:555555555] and attaching a tif attachment but when I try it in FoxPro
it comes up with the following error
The e-mail address could not be found. Perhaps the recipient
moved to a different e-mail organization, or there was a mistake in the
address. Check the address and try again.
Here is my testing code
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:555555555]" *
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 = "C:\B.TIF"
objMessage.Send ()
objSession.Logoff
*Fax number has been changed
David
17/02/2004 09:09:24
Win98 machine. It works fine when I send an fax attachment in Outlook using
[FAX:555555555] and attaching a tif attachment but when I try it in FoxPro
it comes up with the following error
The e-mail address could not be found. Perhaps the recipient
moved to a different e-mail organization, or there was a mistake in the
address. Check the address and try again.
Here is my testing code
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:555555555]" *
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 = "C:\B.TIF"
objMessage.Send ()
objSession.Logoff
*Fax number has been changed
David
17/02/2004 09:09:24