Send Mail - Outlook verification

PolarBear

Board Regular
Joined
Sep 26, 2005
Messages
215
I'm trying to use the SendMail function to email some sheets to team managers. The code works fine, but Outlook pops up a (very slow) msg box that says "A program is trying to send mail automatically on your behalf. Do you want to allow this?"

It's annoying.

I know this isn't strictely an excel question, but is there a way to turn off this verification in Outlook? I've gone through all the security options, but that doesn't seem to help.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Moved to the appropriate forum.

This is a security measure that Outlook has. You'll need to do something else for it. I recommend checking out one of these possibilities...

Outlook Redemption
ClickYes
CDO
Programmatically creating Outlook UDF to send*

HTH

* Check out this thread: http://www.tek-tips.com/viewthread.cfm?qid=1270370 for more info.
 
Upvote 0
PolarBear,

Is there a simple way to avoid this, (well at least it works for me), if the list of users you want to use, is always the same, go to outlook and create a Distribution list, then use the following function to send the message:

Workbooks.Open Filename:= _
"C:\Testfile.txt"
ActiveWorkbook.SendMail Recipients:="Test_DList", Subject:="Testing Distribution list"
ActiveWorkbook.Close

The ugly part of this (always happens), is that you must open the file, within excel, you are trying to send, But at least you avoid the slow and annoying excel message A program is trying to send mail automatically on your behalf. Do you want to allow this?"

Hope this can help you.
AWalle
 
Upvote 0
SendMail is an option, but it's not Outlook, rather Outlook Express.
 
Upvote 0
Thanks everyone, I appreciate the suggestions. Now if I can get my sysadmin to allow me to install these programs...
 
Upvote 0

Forum statistics

Threads
1,225,322
Messages
6,184,275
Members
453,225
Latest member
adelphiaUK

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top