Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Supress message 'a program is trying to send an email'

Posted on 2013-06-20
11
1,303 Views
Last Modified: 2013-07-01
    ActiveWorkbook.EnvelopeVisible = True
   
    With ActiveSheet.MailEnvelope
       .Introduction = "This is a sample worksheet."
       .Item.To = "aravinds@fastfrate.com"
       .Item.Subject = "My subject"
       .Item.Send
    End With

Open in new window


Hi,

I am using the above code. Unfortunately there are no alternative due to the fact I must keep the formatting of the sheet alive.

Now this code works except I get a msg saying 'a program is trying to send email on your behalf..."

How do I supress this? (the method has to work in other computers as well - I cannot download a plugin, etc)

Any help is appreciated
0
Comment
Question by:Shanan212
  • 4
  • 4
  • 2
  • +1
11 Comments
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 39264277
Use Outlook Redemption.

Title: Outlook Redemption download
Link: http://www.dimastr.com/redemption/download.htm

Kevin
0
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 39264294
>the method has to work in other computers as well - I cannot download a plugin, etc

Then you can't use Redemption.

It's an Outlook message.

Perhaps a solution here:

Title: A program is trying to send e-mail on your behalf , how to bypass this message
Link: http://www.pcreview.co.uk/forums/program-trying-send-e-mail-your-behalf-bypass-message-t2091096.html

Kevin
0
 
LVL 7

Expert Comment

by:dec0mpile
ID: 39264295
Try adding the following code before:

Dim SecurityManager As New AddinExpress.Outlook.SecurityManager 
SecurityManager.ConnectTo(outlookApp) 

SecurityManager.DisableOOMWarnings = True 

Open in new window

0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 13

Author Comment

by:Shanan212
ID: 39264413
Kevin,

Would this require the user to manually edit their own macro settings?

Dec0ompile,

I've tried that before and its apparently a plugin?
0
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 39264449
>Would this require the user to manually edit their own macro settings?

Yes. Otherwise anyone could send emails without the user knowing. That's the whole point of the security blocks. But they only need to do this once.

Kevin
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 39264545
You can change the setting about suspicious activity here: Tools>Options>Trust Centre>Programmatic Access.
0
 
LVL 13

Author Comment

by:Shanan212
ID: 39265953
Ok,

The purpose of this specific function is to send in ghost-emails from our customers when they select a specific product that they normally don't ship with us.

So the ghost email essentially tells us what info they looked for (price quote) and then during our next meeting, we can approach them for a potential business opportunity,

So the email has to be hidden/background and the customers are not expected to know 'how to tweak' the macro settings. However, we will tell them that the the program will communicate with us regarding their price quotes (so that its not entirely an illegal process)

At this situation, what are my options?

I know, sendkeys are one. Any other?

Eg: Possible to 'grab' the window controls of the email and then tell it to send it?
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 39266038
Even if your motivation is entirely in the interest of the customer, you will have to circumvent security measures, and thus open the door for even worse malware.

I suggest that you involve your legal department before implementing anything of this nature.
0
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 39266702
Better yet, don't use email. Get your web developers to build a web service that you can hook into. This is how everyone else does this.

Even if you don't have a web development team or even a web site, you can set up a file server and dump files on it.

There are 101 ways to do this other than hijacking the user's email. Consider also that by doing so, even though you have notified the user that your software will be "phoning home," you have NOT notified them that their email address will be used and thus known by you. THAT is an egregious breach of trust. It would certainly piss me off ;-)

Kevin
0
 
LVL 13

Accepted Solution

by:
Shanan212 earned 0 total points
ID: 39278917
Sorry for getting back to the question late.

I decided to go on with using the email feature but to add a event-listener class and '.display' method

Public WithEvents itm As Outlook.MailItem

Essentially, I am waiting to see if customer clicked 'send' on the email that will send out the email. Then using the event-listener I am initiating other subs.
0
 
LVL 13

Author Closing Comment

by:Shanan212
ID: 39289410
No direct solutions but had to go through near alternative solution.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will show you how to use shortcut menus in the Access run-time environment.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question