Thread: Problems with sending data to a smtp server

  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,981
    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, 11:45 AM
  2. Load DropDownList with SQL Server data
    By IndioDoido in forum C# Programming
    Replies: 0
    Last Post: 01-06-2009, 01: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