A program is trying to send mail using Item.Send

H

he.ll.cat

I need to send a export table with a ACCESS macro, but all time appear this
message:
A program is trying to send mail using Item.Send

i make this macro:
Sub a()
Dim oOutlook As Object
Dim oMailItem As Object
Dim oRecipient As Object
Dim oNameSpace As Object
Dim sAttachment As String


sAttachment = "C:\autoexec.bat"

Set oOutlook = CreateObject("Outlook.Application")
Set oNameSpace = oOutlook.GetNameSpace("MAPI")
oNameSpace.Logon , , True
Set oMailItem = oOutlook.CreateItem(0)
oMailItem.to = "(e-mail address removed)"
oMailItem.subject = "Test"
oMailItem.Body = "Body Test"
'oMailItem.Display
oMailItem.Save
oMailItem.SEND
oNameSpace.LOGOFF

End Sub

but the warning pop up every time.

Some one can help me ?
and techeme how use redemption ????
 
L

LuisE

Is htere any other method that doesn't require to install redemption? I have
an add-in to share among coworkers but it is combersomne to get installed
redepmtion in every computer and expensive.
Thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top