Discussion:
How to avoid a warning message box when sending email via Outlook
Giles Brown
2006-08-31 10:51:08 UTC
Permalink
[Dermot Doran]
| I'm very new to using win32com! I just want to send an email
| message via Outlook. However, I keep getting an annoying
| message box (generated by Outlook) indicating that my program
| could be a virus. Does anybody know how to get around this?
As far as I've ever been able to tell, you're stuck with it.
Obviously, in a sense, since otherwise any would-be virus /
zombie program would simply turn the option off before using
Outlook to send out its emails!
Can't remember the details, but last time I looked (a year ago) you
could avoid this if you changed a setting for the user at the exchange
server. I found this out by doing a bit of googling and
can't remember what I did, but managed to solve the same problem.

Giles
Tim Golden
2006-08-31 08:30:25 UTC
Permalink
[Dermot Doran]

| looks like I might be back to the drawing board :-( Thanks
| for letting me know what your experiences have been.

Just to elaborate slightly on that experience, if all I want
to do is to send an email (ie not look up addresses on Contacts
or do any fancy Outlook-related thing) then I just use an SMTP
server. Here at work the admins have Exchange set up as an
SMTP server, which may or may not be the case for you. At home
or from websites etc. I simply use whichever SMTP server I'd
normally send mail through.

Obviously this won't do anything like keeping a copy in your
Sent Mail box etc. but it will at least work, and with a bit
more effort you may be able to do things like that manually.

TJG

BTW, people in this group will tend to frown on top-posting,
even though we Outlook users have to work around Outlook's
tendency to offer it a [Reply] ;)

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
Dermot Doran
2006-08-31 14:24:56 UTC
Permalink
Thanks Tim!

We have smtp bolted to the floor :-(
[Dermot Doran]
| looks like I might be back to the drawing board :-( Thanks
| for letting me know what your experiences have been.
Just to elaborate slightly on that experience, if all I want
to do is to send an email (ie not look up addresses on Contacts
or do any fancy Outlook-related thing) then I just use an SMTP
server. Here at work the admins have Exchange set up as an
SMTP server, which may or may not be the case for you. At home
or from websites etc. I simply use whichever SMTP server I'd
normally send mail through.
Obviously this won't do anything like keeping a copy in your
Sent Mail box etc. but it will at least work, and with a bit
more effort you may be able to do things like that manually.
TJG
BTW, people in this group will tend to frown on top-posting,
even though we Outlook users have to work around Outlook's
tendency to offer it a [Reply] ;)
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
http://www.star.net.uk
________________________________________________________________________
--
http://mail.python.org/mailman/listinfo/python-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060831/f13584b8/attachment.html>
Grant Edwards
2006-08-31 15:20:26 UTC
Permalink
[Dermot Doran]
| I'm very new to using win32com! I just want to send an email
| message via Outlook. However, I keep getting an annoying
| message box (generated by Outlook) indicating that my program
| could be a virus. Does anybody know how to get around this?
As far as I've ever been able to tell, you're stuck with it.
There is a DLL you can use to call Outlook to avoid that.

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

It wraps the Outlook COM objects and accesses them in a way
that doesn't trigger the warning. [The security BS is bypassed
if you call DLL entries directly from C/C++ instead of via the
COM interface.]
Obviously, in a sense, since otherwise any would-be virus /
zombie program would simply turn the option off before using
Outlook to send out its emails!
Like most of Microsoft's "security" features, it provides zero
real protection and a lot of real annoyance. Anybody who
really wants to can bypass it.

"Where do you want to be frustrated today?"
--
Grant Edwards grante Yow! Today, THREE WINOS
at from DETROIT sold me a
visi.com framed photo of TAB HUNTER
before his MAKEOVER!
Dermot Doran
2006-08-31 14:24:01 UTC
Permalink
Hi Giles,

Yep, the admin can override this. I've been doing some of my own hunting
around and it would appear that you can:
- Resolve this if you have admin rights.
- Use Outlook Redemption http://www.dimastr.com/redemption/
- Use Extended MAPI
- Install ClickYes http://www.contextmagic.com/
- Have the Enterprise migrate to Linux! Yes!!

Thanks for responding!

Cheers!!

Dermot.

P.S.

Apologies for top posting (doing this quickly via GMail)!
Post by Giles Brown
[Dermot Doran]
| I'm very new to using win32com! I just want to send an email
| message via Outlook. However, I keep getting an annoying
| message box (generated by Outlook) indicating that my program
| could be a virus. Does anybody know how to get around this?
As far as I've ever been able to tell, you're stuck with it.
Obviously, in a sense, since otherwise any would-be virus /
zombie program would simply turn the option off before using
Outlook to send out its emails!
Can't remember the details, but last time I looked (a year ago) you
could avoid this if you changed a setting for the user at the exchange
server. I found this out by doing a bit of googling and
can't remember what I did, but managed to solve the same problem.
Giles
--
http://mail.python.org/mailman/listinfo/python-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060831/85f8279c/attachment.html>
Tim Golden
2006-08-31 08:01:19 UTC
Permalink
[Dermot Doran]

| I'm very new to using win32com! I just want to send an email
| message via Outlook. However, I keep getting an annoying
| message box (generated by Outlook) indicating that my program
| could be a virus. Does anybody know how to get around this?

As far as I've ever been able to tell, you're stuck with it.
Obviously, in a sense, since otherwise any would-be virus /
zombie program would simply turn the option off before using
Outlook to send out its emails!

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
Dermot Doran
2006-08-31 08:16:02 UTC
Permalink
Hi Tim,

looks like I might be back to the drawing board :-( Thanks for letting me
know what your experiences have been.

I'm kind of surprised that it works this way since the ns.logon() allows me
to access the Outlook address book without any problems. Without the logon
I get another warning box requesting that I allow access to an external
program.

Ah well.

Cheers!!

Dermot.
[Dermot Doran]
| I'm very new to using win32com! I just want to send an email
| message via Outlook. However, I keep getting an annoying
| message box (generated by Outlook) indicating that my program
| could be a virus. Does anybody know how to get around this?
As far as I've ever been able to tell, you're stuck with it.
Obviously, in a sense, since otherwise any would-be virus /
zombie program would simply turn the option off before using
Outlook to send out its emails!
TJG
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
http://www.star.net.uk
________________________________________________________________________
--
http://mail.python.org/mailman/listinfo/python-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060831/d6f0ca74/attachment.html>
Dermot Doran
2006-08-31 07:22:20 UTC
Permalink
Hello All,

I'm very new to using win32com! I just want to send an email message via
Outlook. However, I keep getting an annoying message box (generated by
Outlook) indicating that my program could be a virus. Does anybody know how
to get around this? Here is the sample code I'm using:
from win32com.client import Dispatch
s=Dispatch("Outlook.Application")
ns=s.GetNamespace("MAPI")
ns.Logon() # Note: I've taken the login credentials out of the example :-)
mi = ns.Application.CreateItem(0)
mi.Recipients.Add("an,other")
mi.Subject="Hello from Python!"
mi.Body="I just need to figure out how to avoid the message box now!"
mi.Send()
ns.Logoff()

I'm probably missing something silly or have hit a brick wall with what I
want to do with CDO.

Cheers!!

Dermot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060831/99cbc9ad/attachment.html>
Steve M
2006-08-31 17:41:50 UTC
Permalink
[Dermot Doran]
| I'm very new to using win32com! I just want to send an email
| message via Outlook. However, I keep getting an annoying
| message box (generated by Outlook) indicating that my program
| could be a virus. Does anybody know how to get around this?
The users in our office have a little program called ClickYes.exe that
sits in the system tray and automatically clicks yes when this pops up.
Hardly elegant but it solves their problem.
Continue reading on narkive:
Search results for 'How to avoid a warning message box when sending email via Outlook' (Questions and Answers)
262
replies
In what ways do businesses distinguish themselves from others to be more successful?
started 2008-09-09 14:56:30 UTC
small business
Loading...