Shanan212
asked on
Supress message 'a program is trying to send an email'
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
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
>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
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
Try adding the following code before:
Dim SecurityManager As New AddinExpress.Outlook.SecurityManager
SecurityManager.ConnectTo(outlookApp)
SecurityManager.DisableOOMWarnings = True
ASKER
Kevin,
Would this require the user to manually edit their own macro settings?
Dec0ompile,
I've tried that before and its apparently a plugin?
Would this require the user to manually edit their own macro settings?
Dec0ompile,
I've tried that before and its apparently a plugin?
>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
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
You can change the setting about suspicious activity here: Tools>Options>Trust Centre>Programmatic Access.
ASKER
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?
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?
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.
I suggest that you involve your legal department before implementing anything of this nature.
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
No direct solutions but had to go through near alternative solution.
Title: Outlook Redemption download
Link: http://www.dimastr.com/redemption/download.htm
Kevin