Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 166
  • Last Modified:

Upload e-mail address from application to web server

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
skynergy
Asked:
skynergy
  • 3
1 Solution
 
MotazCommented:
You can use Indy's HTTP client,
you can use Post method or get
0
 
MotazCommented:
This is an example of Get:

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

Motaz
0
 
MotazCommented:
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
 
pnh73Commented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now