Solved

Upload e-mail address from application to web server

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

777 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