Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidCode SnippetDelphiDemoFiremonkeyIOSOSXWindows

Send Email From A Delphi XE5 Firemonkey Client Via A PHP Server Script

Delphi XE5 Firemonkey Send Email PHPOver on the Pictoselector blog there is a new post about sending an email using the Indy HTTP components via a PHP script on a server. The post is not specifically about Delphi XE5 Firemonkey but the same idea applies if you want to send an email from a mobile app on Android or IOS. Should be no problem using the same idea in Delphi XE6 and AppMethod. The demo source code itself even uses VCL I think but there is nothing tied to any Windows platform controls and you should be able to easily convert the project to a mobile Firemonkey project. The general idea is that sending email locally from your device or desktop component can run into all kinds of problems with firewalls and your ISP. A better alternative is to connect to a script on a server and send the email from the web server. This example is pretty basic and if you were implementing it in a mobile app what you would want to do would be to have a login system on the server side where the user would login and then you would send the email for whatever action you needed to based on the user that was logged in. In any event this is a really code proof of concept sample that shows posting data to a PHP script from a Delphi client.

Head over and read the full blog post about sending email via a PHP script from a Delphi XE5 client.

Here is a mirror of the source code for the email sending Delphi client to PHP server.

close

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts
AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes

DelphiIDEShowcaseWindows

Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores

DelphiFiremonkeyIDEIOSOSXWindows

DelphiCon 2020 FireMonkey Sessions Available Starting November 19

AndroidC++BuilderDelphiDemoFiremonkeyWindows

Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

Sign up for our Newsletter and
stay informed

Leave a Reply