How send a mail from aplication window?

Just starting out? Need help? Post your questions and find answers here.
Lubos
Enthusiast
Enthusiast
Posts: 167
Joined: Tue Feb 03, 2004 12:32 am
Contact:

How send a mail from aplication window?

Post 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.
Windows 7 Professional / Service Pack 1 - 32bit, PureBasic 5.46 LTS (x86)
My mother tongue is Czech. I have a Czech version of Windows.
Who is not afraid of GOTO, the one need not afraid any things!
Marc56us
Addict
Addict
Posts: 1479
Joined: Sat Feb 08, 2014 3:26 pm

Re: How send a mail from aplication window?

Post 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:
Post Reply