Solved

Upload e-mail address from application to web server

Posted on 2002-05-08
4
159 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

18 Experts available now in Live!

Get 1:1 Help Now