473,805 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending Mail via Extended MAPI

Hi

Does anyone have an idea how to send mail via the win32 mapi extensions
that come with pywin32? It's very easy using Simple MAPI, but
unfortunately brings up dialog boxes inn various versions of Outlook
with security patches etc. It doesn't seem obvious from any
documentation and the spambayes classes (which are cited as a good
example of how to use the mapi wrappers) don't ever need to send mail...

Of course it could be impossible and I could be going round in circles,
but knowing that would be helpful too :-)

David
Jul 18 '05 #1
3 3244
John J. Lee wrote:
David Fraser <da****@sjsoft. com> writes:

Does anyone have an idea how to send mail via the win32 mapi
extensions that come with pywin32? It's very easy using Simple MAPI,
but unfortunately brings up dialog boxes inn various versions of
Outlook with security patches etc. It doesn't seem obvious from any
documentati on and the spambayes classes (which are cited as a good
[...]

I think that's the idea. Microsoft's plan to is to make the API for
sending mail without user intervention so incredibly complicated and
pulverisingly dull that the even the virus authors can't be
bothered...


Which is of course a little frustrating :-)
IIRC, there's a commercial COM server that wraps up Extended MAPI and
exposes a clone of the Simple MAPI interface.


I think this must be Outlook Redemption ... anyway we'll try and see if
we can implement what we need without them :-)

Thanks
David
Jul 18 '05 #2
David Fraser <da****@sjsoft. com> writes:
John J. Lee wrote: [...]
IIRC, there's a commercial COM server that wraps up Extended MAPI and
exposes a clone of the Simple MAPI interface.


I think this must be Outlook Redemption ...


Yeah, that rings a bell. From the name, I guess I misremeber the API
it exposes, though...
anyway we'll try and see
if we can implement what we need without them :-)


Rather you than me :-)
John
Jul 18 '05 #3
John J. Lee wrote:
David Fraser <da****@sjsoft. com> writes:
John J. Lee wrote:


[...]
IIRC, there's a commercial COM server that wraps up Extended MAPI and
exposes a clone of the Simple MAPI interface.


I think this must be Outlook Redemption ...


Yeah, that rings a bell. From the name, I guess I misremeber the API
it exposes, though...
anyway we'll try and see
if we can implement what we need without them :-)


Rather you than me :-)

John


We have now discovered that pywin32 contains a win32com.mapi class which
wraps extended MAPI! That plus some finding C++ code that actually
manages to send mail via extended MAPI and we're nearly there ...

Just need to work out how to construct a PyADRLIST for the
PyIAddrBook.Res olveName function from that module which isn't clear from
the docs or the source or anywhere else ... but that looks like the last
hurdle. When its done we'll write it up as a Cookbook item or something

Cheers
David
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2246
by: Hari | last post by:
Hi all! I am trying to send mail using outlook in my web application. i am using Outlook Express. Actually i am saving it in DRAFTS folder instead of sending it. My system are in network. I hard coded my outlook login profile. Its working fine as far as running the application in that particular system i.e., where i was developing the Application. But when i am trying to run it on remote system i.e., using system name or IP address, its...
13
3234
by: joe215 | last post by:
I want my users to send emails from a Windows app that I am developing in Visual Basic.NET 2003. I found a good example of sending email to a SMTP server using the SmtpMail class. However, using this, it seems, that the user must install IIS on their computer. Isn't there a class that will detect whatever mail server is available on a computer and use that? How do I create this functionality without having the user add any other...
1
1951
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...
1
1741
by: Robert Hanson | last post by:
Hi All, Can anyone comment on whether of not Whidbey will provide better support for Extended MAPI so we can avoid the Outlook Warning Message? Thanks in advance, Bob Hanson Centare Group Ltd.
7
4702
by: mostafa atalla | last post by:
how to send email by MS outlook express using C# code
0
1433
by: Kevin Quigley | last post by:
Hi, I have a web page that will send emails to various addresses, I've tried using the SmtpMail class but no matter what I try it will not work. I have an asp page that does actually work using mapi.session... <% Const cStrServer = "sciehex01" Const cStrMailbox = "weeklyreportuser"
1
2877
by: Nick Gilbert | last post by:
Hi, I'm writing a Windows Forms application in .NET and I need to send an e-mail from it. As it's NOT asp.net, I don't have access to an SMTP server so I will have to send the e-mail using Simple MAPI. I can't seem to find a way of doing this in .NET as it seems .NET has no MAPI support (amazingly!). How can I reliably send an e-mail from a Windows Forms app from .NET?
5
2785
by: Larry Kenneth | last post by:
I using Outlook 9 in my vb program to send e-mails to number of people. However every time I send an -email, XP keep poping up with this message, "A program is trying to automatically send e-mail on your behalf do you want this" How can I suppress this ? Thanks for your help. Cheers
7
121672
by: Jacques St-Pierre | last post by:
Hello, I need a simple way to send very simple email via a VB6 code. Anyone know how to do that? Any code avaliable? Without using Outlook if possible, I only have Outlook Express avaliable. Bye Jacques
0
10607
Oralloy
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...
0
10359
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10104
tracyyun
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...
0
9182
agi2029
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...
1
7645
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5541
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...
0
5677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4317
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.