Page 1 of 1

How send a mail from aplication window?

Posted: Mon Mar 12, 2018 5:57 pm
by Lubos
I would like to place a form for sending an email to my address on the window of my freely distributed application. I do not want to burden the user with the need for some other activity. Is there an anonymous mail server suitable for that purpose? Or is there any other possibility? I welcome the code sample.

Re: How send a mail from aplication window?

Posted: Mon Mar 12, 2018 6:24 pm
by Marc56us
If the user cannot configure the connection to his own SMTP server, the alternative solution is to use a mailto link:
This will open the default mail client and pre-fill in the information.

Like this:

Code: Select all

RunProgram("mailto:xxxxxx@yyyyyy.com?subject=Need Support Please&body=Hello World", "", "")
This is how I do in About Box in my softwares
(using hyperlink)

:wink: