Recent

Author Topic: Cross Platform Open Default Email Client  (Read 611 times)

Badger

  • Full Member
  • ***
  • Posts: 144
Cross Platform Open Default Email Client
« on: May 17, 2022, 08:43:31 am »
I am trying to write some code that forwards an email.  When required, it takes a number of email addresses and copies them to the clipboard then instructs the user to select the required email for forwarding, put cursor on "To" and press Ctrl-V. 

Identifying the default client and opening the In Box is my problem.

I have found numerous examples of creating a new email within the default email client from within an application.  (I use OpenDocument(PChar(EMail)).  However, I can't figure out how to simply open the default client's main page.

Can anyone help please?
« Last Edit: May 17, 2022, 08:47:41 am by Badger »
Badger
(A bad tempered, grumpy animal that sleeps most of the winter!)

If at first you don't succeed - you're running about average!

I'm using Windows 10 Lazarus v2.4.4  FPC 3.2.2   Win 32/64

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1313
Re: Cross Platform Open Default Email Client
« Reply #1 on: May 17, 2022, 09:16:53 am »
Identifying the default client and opening the In Box is my problem.

Yes, that is a problem. So, don't do that. Send and receive the email directly. Find out the address of the email server(s) and talk to them.

AlexTP

  • Hero Member
  • *****
  • Posts: 2402
    • UVviewsoft

 

TinyPortal © 2005-2018