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

  • SEARCH
  • Home
  • 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 6981761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:11:56+00:00 2026-05-27T18:11:56+00:00

My apps send emails using the Indy TiDSMTP client component. In some situations however,

  • 0

My apps send emails using the Indy TiDSMTP client component. In some situations however, the customers are not able or willing to set up SMTP servers and ports, usernames, etc, so I would like to provide a solution that sends emails without requiring anybody to set up anything.

I tried the TIDSMTPRelay demo but I need to enter DNS server IP address explcitly (and when I did this, it failed on “Project SMTPRelay.exe raised exception class EIdHostRequired with message ””). I was hoping for an Indy solution that doesn’t require the user to enter any settings – one that will work “out of the box” as long as they have access to the internet.

What else do I need to provide?

TIA,
R

  • 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-27T18:11:57+00:00Added an answer on May 27, 2026 at 6:11 pm

    You have to send the emails to the recipient mail servers directly. That requires performing a DNS lookup to retreive the MX records for each recipient domain. Indy’s TIdSMTPRelay component handles that for you (by using the TIdDNSResolver component internally).

    There is no platform-neutral way to query for the machine’s current DNS configuration. That requires platform-specific APIs. Indy does not have anything in place right now to automate that, though I suppose it is not outside the realm of possibility in a future release.

    The exception you are seeing is raised by TIdTCPClient.Connect(). You should not be calling that manually when using TIdSMTPRelay. It is called internally after determining which Host to connect to for each recipient domain. All you need to do yourself is set the DNSServer property, optionally set the RelaySender property, and then call the Send() method. Nothing else.

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

Sidebar

Related Questions

Those of us with iPhone apps (released or unreleased) are able to send out
I'm familiar with how to send emails via Google Apps Script (http://code.google.com/googleapps/appsscript/articles/sending_emails.html). It's super
I'm using Delphi 2009 and the lastest Indy 10 from svn to send e-mails
I am using SwiftMailer to send emails from my application. All is working fine
I'm using my Gmail Apps for Domain account to send email within my rails
I am sending emails to users using Django through Google Apps. When the user
You've probably seen web apps that have an email dropbox. Users can send email
I often want to send sample apps to friends & colleages that work with
I had try to implement the send me log feature into my apps but
My apps are installed. They used to work. Now that I made some edits

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.