I wanted to send emails from Picto-Selector and I was using my own SMTPserver for this. However SMTP is often blocked and it even triggered a firewall in the past when some people from different locations were sending emails almost at the same time…
So I looked for a way to send email with attachment using my webserver. I came up with the code in this example
You will need to replace the password ‘useyourownpassword’ in both the Delphi and php code to use it on your own webserver.
The delphi code is in fact doing this:
This is done in Delphi with a Indy HTTP component: