Solved

Extended MAPI SendEMail Help

Posted on 2003-11-10
6
333 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
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now