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:
I tried to turn off firewall but no success. Let’s try this simple script, thanks a lot!
Might have a limitation on upload file size. Often set default to 8 kb or so.
That could be, so far I have been sending emails with attachments up to 4MB with it.
You can also use the put command to send the file and also get to receive files using a stream to receive the file(s)