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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redemption question

Status
Not open for further replies.

yeti

Programmer
Mar 22, 2001
33
GB
Hi

I'm using Dmitry Streblechenko's "Redemption" Outlook add-in to allow me to automatically send mail via VBS without being bothered by the Microsoft secuirty warnings.

So far this works great - but I'm raising the stakes.

We use Zetafax for MSExchange and this allows us to send e-mails to addresses like fred@0154554443 and they are delivered as faxes.

So, in theory, I should be able to use my VBS code to send to fax address also.... or so I thought!

When the script executes I get the error "Could not resolve the message recipients". Strangely, the message DOES appear in my drafts folder and, if I open it and click on "Check Names", Outlook is able to resolve without error and I can send the fax.

Can anyone help? Below is a sample of my code:
Code:
Dim OutlookMessage, oItem, oBCC
Set OutlookApp = CreateObject("Outlook.Application")
Set Namespace = OutlookApp.GetNamespace("MAPI")
Namespace.Logon

set OutlookMessage = CreateObject("Redemption.SafeMailItem")
set oItem = OutlookApp.CreateItem(0)

oBCC = "A N Other@01689 824334"

With OutlookMessage
 .Item = oItem
 .BCC = oBcc
 .Subject = "Test fax" 
 .Body = "Faxing via Redemption and Zetafax."
 .Send
End With

set Utils = CreateObject("Redemption.MAPIUtils")
Utils.DeliverNow
Utils.Cleanup


-Andrew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top