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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:25:16+00:00 2026-06-17T10:25:16+00:00

I have successfully written a program which sends Hebrew HTML emails coded as UTF-8

  • 0

I have successfully written a program which sends Hebrew HTML emails coded as UTF-8 along with embedded pictures and attachments.

I have noticed that whilst emails with attachments of type JPG or TXT get sent rapidly, emails with PDF attachments take a long time (a minute) to be sent. I arranged for a tmemo component to receive the AStatusText string from the SMTP component’s OnStatus event, and saw that the program was encoding both the text (correct) and the attachment (incorrect).

How can I prevent the attachment from being encoded and thus have the email sent faster?

Here is the log from the SMTP component showing the time

18:44:01 smtp: Connected.
18:44:04 smtp: Encoding text
18:44:04 smtp: Encoding attachment
18:44:04 smtp: Encoding attachment
18:45:05 smtp: Disconnecting.
18:45:05 smtp: Disconnected.
18:45:05 disconnected

The minute was necessary to encode a PDF file of size 491KB. During this time the program is unresponsive (I thought that the program was hung until I looked at the log).

Maybe I should ask a slightly different question: why does this have to be encoded?

  • 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-17T10:25:17+00:00Added an answer on June 17, 2026 at 10:25 am

    All attachments are ALWAYS encoded using MIME64, or else your email will not be readable by anybody but you. It isn’t your job to change how internet email works.

    The reason for your delay is probably either that the PDF is being “virus scanned” by your hosting company, or on the other hand, if you are attaching a giant PDF, and it’s taking a minute to encode it, I’m not surprised that a giant PDF file, when converted to MIME64, which is not a step you can skip, takes a long time. But your PDF is 491 KB, which is miniscule, so the delay may be on the server side, which may be scanning your PDF through. Remember that the SMTP process is a dialog of your-side-sends, then the other-side-responds. A delay before the other side responds is not something you can fix without understanding why the delay happens. The “no encoding” idea you had is not reasonable.

    However, virus/spam-scan is a reasonable hypothesis, which may be adding 30 seconds to your already-30-second normal transmit time. To test that hypothesis, rename your pdf from “test.pdf” to “test.p@d@f$”, and see if the transmit time drops from 60 seconds to about 30 seconds. You haven’t stated how fast your internet pipe is, or how large you think the MIME64 encoded EMAIL may be, but it could be 1.5x larger than your PDF, so around 600 to 800 kbytes. If you are on a very slow DSL or ISDN connection, then that would explain it too.

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

Sidebar

Related Questions

I have my program written in C++ and it is can be successfully compiled
I have successfully written a video processing program. I used ubuntu and Netbeans for
I have written a google visualization treemap wrapper for GWT. I can successfully draw
I've written an entire app pretty successfully in Django but I have this nagging
I have been trying to write a Java program which connects to mysql db
Question: I have written a console program that uses the SQL server 2005 web
I have written the entire program myself, the program is suppose to simulate incoming
I've been following a tutorial written for Actionscript 2, and have successfully converted it
I have a relatively simple program written in C++ and I have been using
I have written a small program to create thread and change their default stack

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.