Solved

Smtp ,but how?

Posted on 2003-11-22
6
237 Views
Last Modified: 2010-04-05
Hello , i am totally new to Delphi ,so that might be an easy question ..
Well  , I am trying to build a small project
2 TEdit and a button on the form ,after clicking on the button I want to send the textes in the edits to my SMTP mail ,
but how ?

0
Comment
Question by:seviye
  • 2
6 Comments
 
LVL 1

Accepted Solution

by:
FeralCTO earned 20 total points
ID: 9804236
Indy (www.indyproject.org) has an SMTP client component in it. It's very easy to send an email with that component. If you don't already have Indy (it comes with the more recent versions of Delphi) or you want to make sure you're working with the most up to date version, you can download it off of the Indy web site. In addition, there are demo programs there available for download. In the demo pack there's a demo of sending an email with SMTP. That demo project is named "SMTPRelay" FYI, Indy is open source and, therefore, free.
0
 
LVL 5

Assisted Solution

by:DeerBear
DeerBear earned 20 total points
ID: 9810102
Hi,

What you want to do is a basically trivial task, but your being newbie makes it /quite/ complicated.
SMTP protocol is based on an RFC( Request For Comments ) by Jon Postal years ago.

Delphi has many components sets available to make Internet Programming, let's see the
best known:

1) Indy - officially distributed by Borland
2) ICS - the normal Indy opponent, see my comments in a previous thread
3) IPro - a well known library from former Turbo Power
4) Synapse - a class library
5) FastNet - DEAD

Reading my previous comments on this topic, you can get an idea of my POV.

Getting to more "practical" things, I'd suggest to use INDY, studying the working of
MailDemo example program.

When you're done with it, try creating a program of yours.

BTW: what delphi version do you have?

HTH,

Andrew
0
 

Author Comment

by:seviye
ID: 9820035
thanx Andrew ,
I use Delphi 7 vers.
I have the Indy components , I made the program but I still have problems with ports .
I try to send from no:25 ,but it didnt work ..
thx again ,
sev
0
 
LVL 5

Expert Comment

by:DeerBear
ID: 9823031
Hi,

Did you STUDY the MailDemo program as I told you BEFORE writing your own?

If you didn't, please *DO* now.

You need to understand that before writing your own, otherwise you wouldn't have
made the statement about port 25, I can assure you :-)

Cheers,

Andrew
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

733 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