I'm trying to send an e-mail through outlook. So far I've gotten it to
work with the mail script at http://aspn.activestate.com/ASPN/Coo.../Recipe/149461 My only
problem is that when I call Resolve() and Send(), I get confirmation
dialogs. I will be sending out quite a few e-mails at a time, and would
rather not have the user have to click yes for every single one. Does
anyone know a workaround? I know about smtplib, but I would prefer to
simply make what I have work. Thanks.
Chris 14 4815
Chris wrote: I'm trying to send an e-mail through outlook. So far I've gotten it to work with the mail script at http://aspn.activestate.com/ASPN/Coo.../Recipe/149461 My only problem is that when I call Resolve() and Send(), I get confirmation dialogs. I will be sending out quite a few e-mails at a time, and would rather not have the user have to click yes for every single one. Does anyone know a workaround? I know about smtplib, but I would prefer to simply make what I have work. Thanks.
Alas, I dont think that there is much you can do to prevent the
confirmation dialogs with Outlook's MAPI dll. MS added them in a service
pack as an anti-virus measure, so no work-around. Not all clients show
these anoying dialogs though. Thunderbird definately doesn't.
Regards,
Will McGugan
Will McGugan wrote: Chris wrote:
I'm trying to send an e-mail through outlook. So far I've gotten it to work with the mail script at http://aspn.activestate.com/ASPN/Coo.../Recipe/149461 My only problem is that when I call Resolve() and Send(), I get confirmation dialogs. I will be sending out quite a few e-mails at a time, and would rather not have the user have to click yes for every single one. Does anyone know a workaround? I know about smtplib, but I would prefer to simply make what I have work. Thanks.
Alas, I dont think that there is much you can do to prevent the confirmation dialogs with Outlook's MAPI dll. MS added them in a service pack as an anti-virus measure, so no work-around. Not all clients show these anoying dialogs though. Thunderbird definately doesn't.
There is actually a workaround. You're using Simple MAPI which has a
nice easy interface. The confirmation dialogs are only for Simple MAPI.
Using Extended MAPI can work around the problem but its a lot more tricky.
See the initial discussion here: http://aspn.activestate.com/ASPN/Mai...-win32/2160646
This code has now been included in pywin32 somehow but I can't remember
where and its late. Should also be a cookbook entry. Maybe Google can
help :-)
David
David Fraser wrote: Alas, I dont think that there is much you can do to prevent the confirmation dialogs with Outlook's MAPI dll. MS added them in a service pack as an anti-virus measure, so no work-around. Not all clients show these anoying dialogs though. Thunderbird definately doesn't.
There is actually a workaround. You're using Simple MAPI which has a
I stand corrected.
Will McGugan
Will McGugan wrote: I'm trying to send an e-mail through outlook. So far I've gotten it to work with the mail script at http://aspn.activestate.com/ASPN/Coo.../Recipe/149461 My only problem is that when I call Resolve() and Send(), I get confirmation dialogs. I will be sending out quite a few e-mails at a time, and would rather not have the user have to click yes for every single one. Does anyone know a workaround? I know about smtplib, but I would prefer to simply make what I have work. Thanks. Alas, I dont think that there is much you can do to prevent the confirmation dialogs with Outlook's MAPI dll. MS added them in a service pack as an anti-virus measure, so no work-around. Not all clients show these anoying dialogs though. Thunderbird definately doesn't.
Unfortunately, I don't have the option of installing Thunderbird.
Chris
>> Alas, I dont think that there is much you can do to prevent the confirmation dialogs with Outlook's MAPI dll. MS added them in a service pack as an anti-virus measure, so no work-around. Not all clients show these anoying dialogs though. Thunderbird definately doesn't. There is actually a workaround. You're using Simple MAPI which has a nice easy interface. The confirmation dialogs are only for Simple MAPI. Using Extended MAPI can work around the problem but its a lot more tricky. See the initial discussion here: http://aspn.activestate.com/ASPN/Mai...-win32/2160646
This code has now been included in pywin32 somehow but I can't remember where and its late. Should also be a cookbook entry. Maybe Google can help :-)
Cool. I'll take a look an' see if I can get it to work. MAPI has
turned out to be a major PITA. Especially when trying to learn it and
Python at the same time. :)
Chris
At the risk of beating a dead horse, but you really should consider
using SMTP instead if you are really going to be sending a lot
of messages. I think you will find it more reliable and much faster.
It also eliminates the need for ANY email client to be on the machine
that is sending the messages. http://motion.technolust.cx/related/send_jpg.py
Here is a link to a class that wraps everything up very nicely. You
should be able to be sending SMTP emails with it in 10-15 minutes.
It supports binary attachments as well.
FYI,
Larry Bates
Chris wrote: I'm trying to send an e-mail through outlook. So far I've gotten it to work with the mail script at http://aspn.activestate.com/ASPN/Coo.../Recipe/149461 My only problem is that when I call Resolve() and Send(), I get confirmation dialogs. I will be sending out quite a few e-mails at a time, and would rather not have the user have to click yes for every single one. Does anyone know a workaround? I know about smtplib, but I would prefer to simply make what I have work. Thanks.
Chris
"Larry Bates" <lb****@syscono nline.com> wrote in message news:lv******** ************@co mcast.com... At the risk of beating a dead horse, but you really should consider using SMTP instead if you are really going to be sending a lot of messages.
The problem is that doesn't work in more complicated configurations
such as when authentication and/or SSL have to happen, not to mention
the issue of configuring servers and ports, that users have already
configured in their mail clients. Additionally when you use MAPI,
messages that you send also end up in your sent items folder. (I
also have not had any issue sending lots of messages using MAPI).
Ultimately the utility of vanilla of pure SMTP will depend on
customer requirements and how simple the configuration is.
Roger
"Chris" <ch*****@us-hampton.mail.sa ic.com> wrote in message news:ma******** *************** *************** @python.org... My only problem is that when I call Resolve() and Send(), I get confirmation dialogs. I will be sending out quite a few e-mails at a time, and would rather not have the user have to click yes for every single one.
Here is an simple workaround: http://www.contextmagic.com/express-clickyes/
If you have win32all installed, you can even use the programming API
they present to turn on and off the clickyes functionality.
Roger
Chris wrote: Alas, I dont think that there is much you can do to prevent the confirmation dialogs with Outlook's MAPI dll. MS added them in a service pack as an anti-virus measure, so no work-around. Not all clients show these anoying dialogs though. Thunderbird definately doesn't.
There is actually a workaround. You're using Simple MAPI which has a nice easy interface. The confirmation dialogs are only for Simple MAPI. Using Extended MAPI can work around the problem but its a lot more tricky. See the initial discussion here: http://aspn.activestate.com/ASPN/Mai...-win32/2160646
This code has now been included in pywin32 somehow but I can't remember where and its late. Should also be a cookbook entry. Maybe Google can help :-)
Cool. I'll take a look an' see if I can get it to work. MAPI has turned out to be a major PITA. Especially when trying to learn it and Python at the same time. :)
Chris
There's recently been some discussion of this topic on the python-win32
list, most lately to accommodate moving sent messages to the Sent
folder. I've personally sent several hundred messages using the
techniques outlined there. http://mail.python.org/pipermail/pyt...st/002239.html is
a good starting point.
regards
Steve
-- http://www.holdenweb.com http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: V.C.Sekhar |
last post by:
Hi there,
Can any one please help in getting me Python-Outlook
programming issue clarified.
I just wanted to do the following using Python:
1)Open a New Oulook Mail Window
|
by: Fritz Switzer |
last post by:
Can anyone provide a small snippet in C# that pulls out the Contacts in
Outlook XP.
I've seen a couple of examples in C++ and VB in previous newsgroup posts,
but either the originals didn't work or my conversion skills are weak. And
if I have to use tlbimp.exe what is the right file to use.
Thanks for the help.
--
Fritz
|
by: Neil Ginsberg |
last post by:
A client of mine is using Outlook (2002, I believe), and is getting prompted
for confirmation that another program is sending e-mail in his name. That
confirmation has to go, as it's part of an automated process.
I originally used SendObject. But, according to MS, that doesn't work with
Exchange. So, per their note, I changed it to MAPI code and provided the
Profile name. Everything works; but he's still getting the prompt.
Now, he...
|
by: John H. |
last post by:
In effort to understand (Outlook) MAPI folder tree
structure wrote simple linear code below to navigate
tree.
Successive "...Folders.GetNext()"'s return same folder at
all levels of tree. What am I doing wrong or not
understanding?
Thanks.
|
by: Peter |
last post by:
I found this code and it works great. Is there any way to up date the
code to export attachments to (c:\Exports)?
===================================================
Dim olFolderCalendar As Integer = 9
Dim olfFolderConflicts As Integer = 19
Dim olFolderContacts As Integer = 10
Dim olFolderDeletedItems As Integer = 3
Dim olFolderDrafts As Integer = 16
Dim olFolderInbox As Integer = 6
| |
by: Brian Hampson |
last post by:
I recently upgraded to Outlook 2007 B2TR and have found that I can no
longer code against MAPI.DLL It's gone :(
Using C#, I used to get the MAPI session, and from that I could change
the out of office. No longer. Does anyone know how to do this using
the new Microsoft.Office.Core and Microsoft.Office.Outlook DLL's that
are supposed to be the new replacements?
Here's what I had that worked until Outlook 2007 came around:
|
by: awrightus |
last post by:
I want to develop an interface to create, edit, and delete Outlook
profiles. The system I want to do this on will Have Outlook 2003 on
it. I can use much of the Office Interop stuff to create/send emails,
etc, but I can't find anything I can leverage for actually
manipulating the Outlook profiles themselves. Not asking for any code
examples, but simply if there are any existing libraries/references
that I can leverage to use with...
|
by: venutaurus539 |
last post by:
Hello,
I was getting an error in Cocreate instance while trying to
access "Outlook" using python script. The python script looks like:
from win32com.client import Dispatch
session = Dispatch("MAPI.session")
session.Logon('OUTLOOK') # MAPI profile name
inbox = session.Inbox
When I tried to execute the script I got the error:
|
by: venutaurus539 |
last post by:
Hi all,
Can some one help me in obtaining the set of recipients email
addresses from an outlook mail? I tried various options like
message.Recipient.Address
message.To.Address
message.Receiver.Address etc.. but I could get the senders address
using message.Sender.Address.
|
by: Rebecca McCallan |
last post by:
I am essentially looking for a bit of code which will allow me to refer to an unspecified MAPI folder. Just to put that into context, My code creates a new folder if there is a new sender, the new folder is automatically created by using the domain name of the senders email address. I then want to move the relevant email into that folder (which is why it is unspecified) does anybody know how I would go about this?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |