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 9201655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:04:02+00:00 2026-06-17T23:04:02+00:00

I’m sending E Mails with INDY 10 components with the following code : try

  • 0

I’m sending E Mails with INDY 10 components with the following code :

  try
    MyNewIndyMessage.From.Address := edFrom.Text;
    MyNewIndyMessage.Recipients.EMailAddresses := edTo.Text;
    MyNewIndyMessage.CCList.EMailAddresses := edCC.Text;
    MyNewIndyMessage.BCCList.EMailAddresses := edBCC.Text;
    MyNewIndyMessage.Subject := edSubject.Text;
    MyNewIndyMessage.Body := edContent.Lines;
    MyIndySMTP.Send(MyNewIndyMessage);
  finally
    MyIndySMTP.Disconnect;
  end;

Indy smtp requests me to enter a valid organisation in the Message.from.address like “myname@companyX.com” , I wouöld like to enter here and arbitray string like “This mail is urgent to read”.
Can I bypass such check done in my INDY SMTP components ?

  • 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-06-17T23:04:04+00:00Added an answer on June 17, 2026 at 11:04 pm

    According to the Internet Message Format specification (RFC 2822), the From field must contain a valid mailbox, which normally is (section 3.4):

    Normally, a mailbox is comprised of two parts: (1)
    an optional display name that indicates the name of the recipient
    (which could be a person or a system) that could be displayed to the
    user of a mail application, and (2) an addr-spec address enclosed in
    angle brackets (“<” and “>”). There is also an alternate simple form
    of a mailbox where the addr-spec address appears alone, without the
    recipient’s name or the angle brackets.

    An example of this may be like this:

    John Doe <john.doe@example.com>
    

    As implied, mail clients usually display the (optional) name attribute if present, and the address itself if a name is not present.

    In INDY terms, the TIdEMailAddressItem have three properties, which are always in sync:

    • Address is the address-spec part of the mailbox, for example: john.doe@example.com
    • Name is the name part of the mailbox, for example: John Doe
    • Text have both parts, for example: John Doe <john.doe@example.com>

    You can change one of that and the others will reflect the same changes.

    So, you can do what you want by setting the Text property directly, like this:

    MyNewIndyMessage.From.Text := 'This mail is urgent to read <myname@companyX.com>';
    

    Or you may want to set each one separately:

    MyNewIndyMessage.From.Address := 'myname@companyX.com';
    MyNewIndyMessage.From.Name := 'This mail is urgent to read';
    

    All this said, you may want to use that name as the subject (along with some more info), and not really as the name, but that’s up to you.

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

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I have a text area in my form which accepts all possible characters from
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I have a bunch of posts stored in text files formatted in yaml/textile (from
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

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.