Originally posted by: Raju
while sending an automatic Email from the application I get an Dialog box which says
"some program is trying to send an E-Mail on behalf of you"
how to avoid this security through application.
thanks in advance.
Raju
Originally posted by: James Grigor
Found this utility to automatically dismiss the Outlook 2000 security dialog that appears when using MAPISendMail.
Wonder how they do it?
http://www.express-soft.com/mailmate/clickyes.html
ReplyOriginally posted by: Martin Turner
Im trying to write an application which will automatically send emails.
I have Outlook Express (6) set as my default email app. I am using your IMapi classes. When the SendMail function is called I get first a dialog asking for a profile (of which "Microsoft Outlook" is the only option), then after OK'ing this I get a message from Microsoft Exchange : "MAPI spooler cannot be started... MAPI 1.0 ...".
I recently had Outlook (97) installed but prior to testing I uninstalled the entire Office suite - leaving just OE as my default email app.
Anyone got any ideas why mapi still tries to use Outlook Profiles?
Thanks
Martin.
Originally posted by: jai hanuman
help -
how can i send utf-8 messages via mapi
i need to set the header
Content-Type: text/plain; charset=utf-8
(preferable Simple Mapi)
Originally posted by: Dan
Similarly to a message above, I have been having problems sending messages with single attachments to single recipients. I know that the call in mapi.cpp to MAPISendMail returns 26, e.g. MAPI_E_NOT_SUPPORTED.
I have no idea what is 'not supported', could you shed any light on this?
I can successfully send messages when I run my app as a stand-alone application, my problems comes along when I run the app as a service (non-interactive) with my regular domain logon.
What should I be doing before I can successfully email from the NT service?
Thanks!
ReplyOriginally posted by: Ruilin Yang
Anybody there please help me. I am new to using MAPI. I like to setup a default simple MAPI client on my system without using outlook. PLease give me some guidance or code samples for this.
Thanks a lots.
Ruilin
Originally posted by: Mike Granger
Using this class with Office XP, for every mail it sends it comes up with a box saying that another program is trying to send an email on my behalf - how do I get rid of this as it is a bit of a pain when sending multiple mails
Thanks
Reply
Originally posted by: Sten Westerback
Hi
I have successfully made SimpleMAPI (using C) code that
creates an MAPI profile (C++), logs into it, uses lpfnMAPIResolveName() to resolve recipients and send
lpfnMAPISendMail(). This code works fine with my normal
domain account.
But when i try to run it in the final environment on the
same machine but running inside a Windows 2000 Service
that runs with another domain account, which doesn't
have interactive logon rights, it succeeds in creating
the profile (seen in HKEY_USERS\S-1correctSIDhere\Software\
Microsoft\WindowsNT\CurrentVersion\Windows Messaging System\
Profiles), logging on (debug log entry), but fails when
trying to resolve the names.
Error code is MAPI_E_NOT_SUPPORTED.
My question is what you think could be the reason.
Is it possible that account needs interactive logon
features to allow recipient resolution? Or do i need
to use full MAPI instead of SimpleAPI? Or could it be
that having had Outlook running earlier still helps
(due to MAPISP32.EXE, the MAPI spooler, still running)?
Or something else? What should i do?
Rgds.
Sten
Originally posted by: Mike Granger
Using this class with Office XP, for every mail it sends it comes up with a box saying that another program is trying to send an email on my behalf - how do I get rid of this as it is a bit of a pain when sending multiple mails
Thanks
Reply
Originally posted by: Rizwan
IMapi.cpp
163 int nError = m_lpfnSendMail(0, (ULONG) pParentWnd->GetSafeHwnd(), &m_message, MAPI_LOGON_UI | flags, 0);
The above line returns nError=26 (MAPI_E_NOT_SUPPORTED) for Win2000 OS where as works fine for NT. any idea why?