1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram

  5. Delphifan Magazine
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

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 AdminDF, Apr 23, 2014.

  1. AdminDF
    Online

    AdminDFAdminDF is a Verified Member Delphifan 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