Dismiss Notice

REGISTRATION IS AFTER ADMIN ACTIVATION

DONATIONS WITH PAYPAL CLICK TO BUTTON

1 MONTH VIP - 5$; 3 MONTHS VIP - 10$; 6 MONTHS VIP - 20$; 1 YEAR VIP - 30$; 2 YEARS VIP - 50$; GOLD USER FOR LIFE VIP - 150$

DONATIONS WITH Bitcoin Address:3NRs3CK3fhXifrNYxHEZKpETDd9vNLMsMD

Dismiss Notice
The registration is approved by the Administrator. It takes about 1 day to approve your registration
Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

Send Email From A Delphi XE5 Firemonkey Client Via A PHP

Discussion in 'Delphi Android And IOS' started by N0body, Apr 23, 2014.

  1. N0body
    Online

    N0bodyN0body is a Verified Member DelphiFan Administrator Staff Member DF Staff

    [​IMG]

    Over 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.

    Download HERE
     
  2. kamiserg
    Offline

    kamiserg DF Member

    as I can send an anonymous email?
     
  3. h_mohamadi
    Offline

    h_mohamadi DF Member

    I've tested and does not work and gives the following error

    an error occured while connecting with the internet,please try
    again later
    a firwall or proxy could bHIDE-THANKSing the communication.
    details:
    HTTP/1.0.301 redirect
     
  4. h_mohamadi
    Offline

    h_mohamadi DF Member

    Thank you.
    I want my yahoo mail with Delphi
    If the source or free components for Delphi 7, I also give thanks
    Please help me
     

Share This Page

Laws
Our website, law, laws, copyright and aims to be respectful of individual rights. Our site, as defined in the law of 5651 serves as a provider of space. According to the law, contrary to the law of site management has no obligation to monitor content. Therefore, our site has adopted the principle of fit and remove. Works are subject to copyright laws and is shared in a manner that violated their legal rights, or professional associations, rights holders who, adsdelphi@gmail.com I can reach us at e-mail address. Complaints considered to be infringing on the examination of the content will be removed from our site.
Donate Help To Us and Be VIP
DONATIONS WITH PAYPAL CLICK TO BUTTON
6 MONTHS VIP - 20$; 1 YEAR VIP - 30$; 2 YEARS VIP - 50$; GOLD USER FOR LIFE VIP - 150$
Social Block