Problems with sending data to a smtp server

This is a discussion on Problems with sending data to a smtp server within the Windows Programming forums, part of the Platform Specific Boards category; I've created a function for sending mail via SMTP. This works just fine, until i try to send binary files. ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    329

    Problems with sending data to a smtp server

    I've created a function for sending mail via SMTP. This works just fine, until i try to send binary files. When i receive the binary file, it has wrong format, and i'm unable to execute it. Whein i open the file in notepad, it has a line break every 990(approximately) bytes.
    Does anyone know how to avoid this?
    I wonder if this has anything to do with the "Content-type" parameter?
    I'm reading this info from the registry(HKCR\.<extension>\Content-type), and i use "Text/Plain" if no content-type data is found

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,674
    Yep, here is the RFC on MIME types. You'll be able to find more comprehensive examples once you know what to search for

    gg

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    329
    Thanks, I've only seen this one

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Client/server problem; server either stops receiving data or client stops sending
    By robot-ic in forum Networking/Device Communication
    Replies: 10
    Last Post: 02-16-2009, 10:45 AM
  2. Load DropDownList with SQL Server data
    By IndioDoido in forum C# Programming
    Replies: 0
    Last Post: 01-06-2009, 12:14 PM
  3. Replies: 48
    Last Post: 09-26-2008, 03:45 AM
  4. Sending data to a server
    By Hakins90 in forum Networking/Device Communication
    Replies: 6
    Last Post: 04-16-2008, 07:54 AM
  5. Replies: 40
    Last Post: 09-01-2006, 12:09 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21