A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

A program is trying to send mail using Item.Send



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 4th 07, 06:48 AM posted to microsoft.public.outlook.program_vba
he.ll.cat
external usenet poster
 
Posts: 1
Default A program is trying to send mail using Item.Send

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 = "
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 ????
  #2  
Old September 4th 07, 07:16 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default A program is trying to send mail using Item.Send

You are on the right track - you need Redemption to bypass the security
dialog. There's some examples of how to use it on this page:

http://www.dimastr.com/redemption/

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"he.ll.cat" wrote:

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 = "
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 ????

  #3  
Old October 18th 07, 04:31 AM posted to microsoft.public.outlook.program_vba
LuisE
external usenet poster
 
Posts: 7
Default A program is trying to send mail using Item.Send

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

"Eric Legault [MVP - Outlook]" wrote:

You are on the right track - you need Redemption to bypass the security
dialog. There's some examples of how to use it on this page:

http://www.dimastr.com/redemption/

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"he.ll.cat" wrote:

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 = "
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 ????

  #4  
Old October 18th 07, 09:11 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default A program is trying to send mail using Item.Send

See http://www.outlookcode.com/article.aspx?ID=52 for all your options.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"LuisE" wrote in message ...
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

"Eric Legault [MVP - Outlook]" wrote:

You are on the right track - you need Redemption to bypass the security
dialog. There's some examples of how to use it on this page:

http://www.dimastr.com/redemption/

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"he.ll.cat" wrote:

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 = "
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 ????

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cancelling mail item send is having problem Dhananjay Add-ins for Outlook 0 August 28th 07 01:06 PM
A program is trying to send mail using Item.Send rhXX Outlook - General Queries 3 June 17th 07 12:28 AM
How to write a program/macro to send a mail to a groups of e-mail Adi Outlook and VBA 8 December 4th 06 06:20 AM
Send Mail to Outlook from a Program jerry Outlook - General Queries 4 July 3rd 06 02:25 PM
A program is trying to send mail using Item.Send Vitesh Outlook and VBA 1 January 23rd 06 02:25 PM


All times are GMT +1. The time now is 11:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.