Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

User Abort Message in Vista, when emailing a report, PS Windows Mail is closed!

edited December 2008 in General
Hi, its me and VISTA and Mail again!

I just cannot stop running into support calls for sending of emails under
vista!

XP - not one!

When sending a report in Reportbuilder using RB's MAPI mail as follows:

var
ssEmail: TppEmail;
begin
ssEMail := tppEmail.Create;
try
With ppReport1 do
begin
EmailSettings.Body.Text := 'Testing Email In Vista with Mark RB-MAPI';
EmailSettings.Recipients.Add('testing123@testing123.com');
EmailSettings.Attachments.Clear;
EmailSettings.Attachments.Add(MailAttachment); // this is defined:
TestMailSSWorkDir:=ExtractFilePath(Application.ExeName)

// MailAttachment := TestMailSSWorkDir + 'TestFile.csv'
EmailSettings.ShowEmailDialog := False;
EmailSettings.PreviewInEmailClient := True;
end;
ssEmail.AddReport(ppReport1);
ssEmail.SMTP.OnEmailError := EmailErrorEvent;
ssEmail.Send;
finally
ssEMail.Free;
end;

The Windows Mail app is set to default mail client under Windows Vista
Bussiness SP1
The error returned is "USER ABORT"

Please any help will be appreciated.

Regards

Adrian Wreyford

Comments

  • edited December 2008
    Hi Adrian,

    In my testing with Windows Vista and Windows Mail as my default email
    client, the code you posted below functioned correctly bringing up a email
    window with two attachments and a message in the body. If Windows Mail was
    already opened I received an "Undifined Failure" which we discussed in a
    previous thread.

    Usually when a "User Abort" error is received, the mail client or
    application has terminated the MAPI connection before it has finished. Be
    sure your application does not allow this or that your users are not
    manually closing the email client.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2008
    I'm sitting infront of the particular PC. I run this exact same code.
    Windows Mail is closed.
    The Busy icon comes up for a moment, and then instead of seeing the
    EmailClientPreview, the error message displays.
    We have put off the firewall, and also disabled TrendMicro used by the
    client, and stil get this error.
    There is absolutely no user intervention on our part. (ie we don't cancel
    anything).

    I have exact same os, also use Windows Mail, same settings for security etc
    for WindowsMail, also default mail engine on my PC, and as you mention quite
    correctly, no errrors when run on my PC.

    On other yet other users with Office2003 etc installed .. you may as well
    give up. Nothing wants to work.

    This is driving me up the wall!

    Chow
    Adrian
  • edited December 2008
    Hi Adrian,

    My best advice would be to try to isolate the difference between the machine
    that works correctly and the one that does not. Do they perhaps have
    different access rights or different regional settings?

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.