Solved

Upload e-mail address from application to web server

Posted on 2002-05-08
4
158 Views
Last Modified: 2010-04-04
Can someone give me a hint or point me in the right direction to upload an e-mail address from my application to subscribe the person to my mailing list without pointing them to a web-page?
0
Comment
Question by:skynergy
  • 3
4 Comments
 
LVL 7

Expert Comment

by:Motaz
ID: 6998403
You can use Indy's HTTP client,
you can use Post method or get
0
 
LVL 7

Expert Comment

by:Motaz
ID: 6998407
This is an example of Get:

    Memo1.Lines.Text:=
      HTTP.Get('http://www.experts-exchange.com/jsp/qList.jsp?ta=delphi');

Motaz
0
 
LVL 7

Accepted Solution

by:
Motaz earned 50 total points
ID: 6998412
Example of post:

var
  F: TFileStream;
  List: TStrings;
begin
  List:= TStringList.Create;
  F:= TFileStream.Create('result.txt', fmCreate);
  List.Add('Name=' + Edit1.Text);
  List.Add('EMail=' + Edit2.Text);
  idHTTP1.Post('http://server/app.asp', List, F);
  F.Free;
  List.Free;
end;

Motaz
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9005398
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from Motaz

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now