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

The Archive Base Latest Questions

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

I am currently working on my own SMTP server and I can successfully send

  • 0

I am currently working on my own SMTP server and I can successfully send email arounds from various programs and web pages such as Outlook, PHP and Pear Mail.

The next stage I need to do is to try and send an attachment via my SMTP server. I have tried doing a LAN trace of my server while sending an attachment via PHP to another SMTP server and I can see I get the follwing from the client:

DATA fragment, 661 bytes

I’m not sure if this is related to the attachment or not.

If it is, is this just telling the SMTP server how long the file is and then I should just write a base 64 encoded string onto the network stream and write it to a file to be used for sending the email on.

Thanks for any help you can provide.

  • 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-15T23:38:02+00:00Added an answer on June 15, 2026 at 11:38 pm

    SMTP has no concept of “attachments” to messages. E-mail attachments are part of the same body of the message that in SMTP is all transmitted between the DATA command and the End-of-DATA indicator (the . “command”). See RFC 5321. Note that there is no way in SMTP to tell the server how much data is going to follow the DATA command, though there is a way for the server to give a limit to the size of a message body (and the reply to the End-of-DATA command might be an error response code and a message indicating that too much data was sent.

    You can use MIME to identify different parts of the body of the message, but the creation and interpretation of the message body are entirely outside the scope of the SMTP server. See RFC 2045 and RFC 2046, and the many other related RFCs that refine the MIME specification (including RFC2184, RFC2231, RFC5335, RFC6532, RFC2646, RFC3798, RFC5147, RFC6657).

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

Sidebar

Related Questions

I am currently working on creating my own SMTP server for a project I
I'm currently working on a simple web application where users each have their own
I am currently working on my own little web crawler thingy and was wondering...
I'm currently working on a web interface where people can create passes. These passes
I am currently working on an Email Server program that will keep track of
I am currently working on a server. I've created my own directory but need
I am currently working on my own implementation of a tab bar for a
Possible Duplicate: Programmatically delete my own app Currently I am working on a iphone
I'm currently working on my own PHP Framework, and I need some help figuring
I am currently working on my own version of membership using Entity Framework 4.0

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.