Home General

Sending email: FromAddress remains empty in Outlook

edited October 2010 in General
Hi,
I am using ReportBuilder Enterprise Edition version 10.09 on Vista SP2
and I Outlook as a default email Client to send emails with pdf attachments.

I use next code in Delphi 2007:

ppReport1.EmailSettings.PreviewInEmailClient := True;
ppReport1.EmailSettings.Subject := 'Subject xxx';
ppReport1.EmailSettings.Recipients.Text := 'customer@comany.nl';
ppReport1.EmailSettings.FromAddress := 'info@mycompany.com';
ppReport1.EmailSettings.Body.Text := 'This is an example';
ppReport1.EmailSettings.Enabled := True;

TppSMTPPlugIn.RegisterClass(TppSMTPMapi);
ppReport1.EmailSettings.FileName := 'C:\Temp\MyReport.PDF';
ppReport1.EmailSettings.Enabled := True;
ppReport1.EmailSettings.ShowEmailDialog := False;
ppReport1.EmailSettings.PreviewInEmailClient := True;
ppReport1.EmailSettings.ReportFormat := 'PDF';
ppReport1.SendMail;


This all works fine.
The email is sent by Outlook, but the "FromAddress" remains empty.
If I enter "from." in Outlook manually, it works fine.

Is there any known issue about this subject?

Thanks,
Ruud Schneiders

Comments

  • edited October 2010
    Hi Ruud,

    Simple MAPI does not support the FromAddress or FromName properties. These
    values are set in the Outlook profile the email is being sent from. If you
    would like to define these values, I suggest using a direct email plugin
    such as Indy or Synapse.

    --
    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.