Solved

Smtp ,but how?

Posted on 2003-11-22
6
239 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
[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
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

729 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