Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6945619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:27:35+00:00 2026-05-27T13:27:35+00:00

Following is my code for the smtp client for sending email VAR SMTP :

  • 0

Following is my code for the smtp client for sending email

    VAR SMTP : TIdSMTP;
 MSG : TIdmessage;
 begin


  MSG:=TIdmessage.Create(NIL);
  TRY
    WITH MSG.Recipients.Add DO BEGIN
      Name:='me025';
      Address:='me025@gmail.com'
    END;
    MSG.BccList.Add.Address:='me025@yahoo.com';
    MSG.From.Name:='self025';
    MSG.From.Address:='self025@127.0.1.1';
    MSG.Body.Text:='<Message Body>';
    MSG.Subject:='<Subject of message>';
    SMTP:=TIdSMTP.Create(NIL);
    TRY
      SMTP.Host:='127.0.1.1'; // IP Address of SMTP server
      // 127.0.1.1
      SMTP.Port:=25; // Port address of SMTP service (usually 25)
      SMTP.Connect;
      TRY
        SMTP.Send(MSG)
      FINALLY
        SMTP.Disconnect
      END
    FINALLY
      SMTP.Free
    END
  FINALLY
    MSG.Free
  END;

 end;

which will use a SMTPserver in same pc

the smtp server is a working indy 10 unofficial sample
http://indy.fulgan.com/ZIP/Indy10demo.zip

whenever i connect to the server “Socket error # 11001 Host not found ” error occers

but smtp server is receiving all the parameters correctly and showing correctly on the GUI

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:27:36+00:00Added an answer on May 27, 2026 at 1:27 pm

    Has your PC an address of 127.0.1.1 or are you trying to use localhost (127.0.0.1)? People should get used to DNS names… as soon as IPv6 will become mainstream at least people won’t be able any longer to remember IP numbers easily 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code import smtplib from email.mime.text import MIMEText smtpserver = 'smtp.gmail.com'
In the following code public static void Send(SmtpClient smtpClient, MailMessage email) { try {
I'm using the following code from this answer Sending email in .NET through Gmail
I am trying to send an email using the following very standard code. However,
I have the following code that causes 'The SMTP host was not specified.' Any
I am trying to send a simple email through the following code: protected void
I have the following code but I am getting an exception that a smtp
Please look at the following code: client.Credentials = new NetworkCredential(SMTP_SERVER_USERNAME, SMTP_SERVER_PASSWORD); client.EnableSsl = false;
I have an ASP.NET program that sends a confirmation email with the following code:
I am using the following code to send an email attachment. I'm using C#,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.