Bypassing Outlook warnings

dentyne
dentyne used Ask the Experts™
on
Hello,

I am coding an application that autosends an Outlook email to a user's supervisor that contains weblinks to forms that the supervisor needs to approve.

However, when the code tells the app to send the email, Outlook pops up a little box saying, "A program is automatically trying to send email on your behalf. Do you want to allow this? If this is unexpected, then click 'No'".

I would imagine this will cause many questions and problems for the client.  If it is possible, I need to know how to bypass this.

Please don't tell me to use other mail options.  I know about them, but would rather use Outlook.  My question is how to bypass this message.  Thanks.

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
It's easy!!

Check the Microsoft website it is all there.  If you are expecting to disable on someone else's computer then forget it (unless you want a massive headache!).  You basically need to set the Outlook security settings from your Exchange Server.

I am also told there is a registry hack you can put in if you are not using Exchange.  You should find plenty of stuff at support.microsoft.com if you search on "A program is automatically trying to send email on your behalf"


Andrew
It is impossible to do unless set-up by the exchange admin. The reason this was added in was to stop a virus from spreading itself. I have had managers and users complain about this, but if you explain the situation to them I am sure they will put up with the pop-up box.

I advise you to keep this set-up removing it could cause a big security risk

Commented:
I feel Chris is right and wrong.

Sometimes it is not obvious that a program is trying to access an address book.  If you have set up a service or something which will run without user input then Chris is not right however, if your application has some sort of "send to supervisor through email" button on your VB Form then, I would keep the message due to the security risks involved.

Don't forget that users have an annoying habit of clicking yes when they don't understand something and not no!!  If they can click there way through something they will.  Eventually they'll get used to clicking yes to this message and then click yes to it no matter when it comes up.  This, in itself renders the message useless in effect so bare that in mind.  I guess the best way is to create a COM Add-In for Outlook which can be trusted by it's name rather than by what it does and run everything through the Add-In somehow.


Regards,
Andrew
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
Thanks.  Both of you had valuable input; however, I suppose andcu answered my question first by saying it was not possible on another's machine unless set up on the Exchange Server.  I appreciate the help from both of you.  Thanks

Commented:
Here are the results of the search that returns "plenty" of stuff and none of it gives either solution you describe. Really you should post the solution.
------------------------------------------------------
Search results: 2 articles
 ACC97: "A Program Is Trying to Send..." Message with SendObject Macro or Method
 When you run the SendObject macro action or the SendObject Visual Basic for Applications method with the EditMessage argument set to No, you may receive the following message: A program is trying to automatically send e-mail on your behalf. Do you...
 
 ACC2000: "A Program Is Trying to Send..." Message with SendObject Macro or Method
 When you run the SendObject macro action or the SendObject Visual Basic for Applications method with the EditMessage argument set to No, you may receive the following message: A program is trying to automatically send e-mail on your behalf. Do you...

Commented:
We've implemented this solution and it works nicely:

http://www.express-soft.com/mailmate/clickyes.html

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial