SMTP component for delphi that is absolutely free.


I was wondering where can we get a SMTP component that is absolutely free. I used the Built in SMPT component in Delphi 6 but it returned an error. saying "invalid command sequence".
Who is Participating?
ewildeConnect With a Mentor Commented:
in delphi 6 you probably used Indy components, right?
well, generally, i had very good experience with these components. i believe there is a solution to your problem, though you need to supply more details..

generally speaking, i would recommand to download the latest version of Indy (version 10). it's an open-source project.

TheRealLokiSenior DeveloperCommented:
personal preference would be the Indy components for SMTP,
although for almost anything else, I'd use Francois Piette's ICS (internet component suite)
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

aerokevsAuthor Commented:
using the indy component i encountered and error saying "invalid command sequence" and "we do not relay <email address>';
TheRealLokiConnect With a Mentor Senior DeveloperCommented:
you'd likely get those problems no matter what component you used then
"invalid command sequence" means just what it says, you have sent a command in the wrong order, or the server was expecting a command before the data you sent.

the "we do not relay" is a common occurrence with ISP's these days. In an attempt to reduce the number of spammers using them as launching pads, they either only allow smtp from trusted sites (other mail servers), or require an authorization first.
try smtp to your local isp's mail server and you wont have this problem.
aerokevsAuthor Commented:

what do you mean by try smtp to your local isp's mail server?

TheRealLokiSenior DeveloperCommented:
Let's say you connect to the internet with "" and they have their mail server as
"" port 25
Your friend connects to the internet with "" and they have their mail server as
"" port 25

If you want to send an email from "MyMachine" to "MyFriend's email address"
the *nomal* travel would look like this
[Mymachine] smtp mail to port 25
[] Recives mail, sees it is for, and queues for delivery
[] sends mail to port 25
[] Recives mail, sees it is for itself (, and puts it in "myfriends" email mailbox.
[MyFriend] connects to port 110 and downloads his mail
[MyFriend] sees it is an offer for a free diploma, and marks it as junk mail...

If you were to try to send to port 25, and have *that* server send the mail to, you would likely get the "we do not relay" error
This is because the smtp mail servers are checking your ip address against their list.
They typically allow any ip address that is issued by themselves (ISP), and other known mail servers, but deny others.

so... if you set
IdSMTP1.Host := ''; // eg. '';
then your ISP's mail server is unlikely to reject it.
aerokevsAuthor Commented:
so what should i do in order that my mail will go smooth? Acutally i am using an ip address instead of the name.
aerokevsAuthor Commented:
guess i have to request for a refund.. no further answers were added.
TheRealLokiSenior DeveloperCommented:
well... the correct answer to your question "where can we get a SMTP component that is absolutely free."
was answered by ewilde and mnasman in the first 2 answers.
That error has something to do with the server you are connecting to, and how you are connecting to it, so that is your real problem.
Forced accept.

EE Admin
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.