Email - use Mapi

Hi,

I have several software for emails, which are MAPI compatible. Is it possible to force the use of one software, not to use the default one?

Thank you

Comments

  • Hi Arnaud,

    To specify a MAPI profile name, use Report.EmailSettings.UserName

    For Outlook, you can add ppSMTPOutlook to the 'uses' of your application. This will register the RB Outlook COM plug-in and use that, rather than MAPI

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • Hi,

    On my computer, I have "Microsoft Outlook", "Mozilla Thunderbird" and "Windows Live Mail".
    I would like to manually choose the right software.

    Thank you
  • Hi Arnaud,

    Windows MAPI uses the email client specified by the Registry Key

    HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail

    Updating the Default key value would enable you to specify the Mapi client. Your app could do this programmatically via the Delphi TRegistry class.

    Another solution is to register/unregister different RB email plug-ins

    - ppSMTPOutlook.pas - uses Outlook COM interface
    - ppSMTPThunderbird.pas - uses ShellExecute to send mail via Thunderbird
    - ppSMTPMapi - uses Windows MAPI

    Open each of the above .pas units, scroll to the bottom. The initialization/finalization contains the register/unregister code. You can copy this code and use in your app to register/unregister plug-ins.

    There is not a plug-in for Windows Live Mail. You would need to use MAPI for that one.







    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • OK, thank you very much. I did not see the "ppSMTPThunderbird" plugin ...
  • For the default email client (mapi), why do you use HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail ?
    In my computer, default mail is in HKEY_CURRENT_USER\SOFTWARE\Clients\Mail

  • Hi Arnaud,

    This is controlled by Windows. You are correct HCU is the location. (I think HLM exists if HCU has not been setup by the user)


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
Sign In or Register to comment.