Solved

Extended MAPI SendEMail Help

Posted on 2003-11-10
6
340 Views
Last Modified: 2010-04-05
Hi,
I've been using SimpleMAPI for auto emailing with Outlook in my application, but we have move to outlookXP. Now those darn security messages come up when you try and send an email via Simple MAPI.

I have looked into third party solutions (including MSExchange disabling the warning), but prefer to use Extended MAPI. There is a set of tutorial notes and code on the web, but I have to pay like $100 AU to get a copy of those notes and can't afford it and I don't have the time to learn all that anymore.

At the moment I have worked out how to log on and off Exchange using ExMAPI, with a global object called Session : IMAPISession;

What I now need is a function that uses Extended MAPI as followed or similar.

type
  TEmail = record
       SenderName   : String;
       SenderEmail    : String;
       
       Recipients       : TStringList;
       CC                  : TStringList;
       BCC                : TStringList;
       
       Subject           : String;
       Body               : TStringList;
       Attachments    : TStringList;
       
       HTMLBody       : Boolean;
  end;

SendEmail(  Session             : IMAPISession,  //needed ??? I'm using it globally
                  anEmail             : TEmail,           //an email record
                  AutoSend           : boolean,         //auto send or display preview
                  DeleteAfterSend : boolean,          //delete msg after send
                  Encrypt              : boolean,          //encrypt the email
                  DigitalSign         : boolean)          //dig sign email


I know this sounds hard, but I got it all working under SimpleMAPI, the encryption, signin and delete after send.  

I offering 500 Points as this is a hard question - well for me anyway. If no one can answer the question fully I will award the points to who ever gets the closest, as long as (anEmail, autoSend) parts are answered.
                   
Thanks for peoples help

Kane




0
Comment
Question by:liykh001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 26

Expert Comment

by:EddieShipman
ID: 9737256
Check out Dmitry Streblechenko's Outlook redemption at: http://www.dimastr.com/redemption/
0
 

Author Comment

by:liykh001
ID: 9737272
Yeah, Thanks,


I have looked at it before, but I'm trying to avoid relying on third party components. I would like to see and use Extended MAPI API.
0
 

Author Comment

by:liykh001
ID: 9744413
OPPS - Yeah, Thanks, Doesnt mean problem has been answered

STILL NEED HELP PLEASE.....
0
 

Expert Comment

by:FAYSIT
ID: 10267153
DOESNT ANYBODY KNOW ?????

HELP PLEASE!!!!!!
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12761703
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question