Results 1 to 2 of 2

Thread: How to attach a file?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2001
    Location
    India
    Posts
    117

    How to attach a file?

    Sir,
    1. I wish to create an application that can us to send e-mail using winsock control. (not using MAPI). I got the code to send e-mail but i don't know how can i attach a picture or any other file with my mail. please help me.......

    2. Can VB's Text Box control support two fonts at a time like RichText Box? Is it any way to do so?

    that's all......

    [email protected]

  2. #2
    Member
    Join Date
    May 2001
    Location
    Malaysia
    Posts
    43
    There are a few ways to attach file. You see, the binary files (image etc) are in 8 bits while you are only allowed
    to send 7bits ASCII through the mail system. So, what you need is to encode it. There are a few ways to "change"
    the 8 bits to 7 bits. Two popular methods that I know is MIME and UUENCODING. I only have the source code for
    UUENCODE in VB. But, certain mail systems use MIME and certain use UUENCODE and some use both. For example,
    Lycos Mail uses MIME and can't open file that is encoded using UUENCODE method. But Hotmail can open file
    that is encoded using UUENCODE. I'll attach you the project that has this UUENCODE module. Good luck!
    P/S : If you find the MIME source code, do e-mail it to me! Thanks!
    Attached Files Attached Files
    Ben Chin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width