Solved

Extended MAPI SendEMail Help

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IExtractImage Delphi 14 207
Path  to current project in Delphi. 2 72
Delphi IDE crash without error message ... 7 76
how to change, disabled button color FMX ? 1 16
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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 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

20 Experts available now in Live!

Get 1:1 Help Now