Solved

Upload e-mail address from application to web server

Posted on 2002-05-08
4
162 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
firemonkey keyboard covers the controls 1 83
MS Access from Delphi 31 105
Broadcast a message using ICS 2 51
Error when I try to post by IdHttp, error 500 - Help 2 25
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

752 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