dcsimg
Results 1 to 6 of 6

Thread: How to do SMTP mail with attachment?

  1. #1

    Thread Starter
    Lively Member zerodevice's Avatar
    Join Date
    Mar 2004
    Posts
    88

    Question How to do SMTP mail with attachment?

    i've already know how to send out a plain mail, but how am i surpose to do mail attachment?

  2. #2
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Location
    Austin, TX - United States of America
    Posts
    1,141

    Re: How to do SMTP mail with attachment?

    Try this free control out. http://dropball.cs.emporia.edu/dropb...soft/smtp.html
    Google is a wonderful thing.
    I drink to make other people more interesting!
    [vbcode]On Error GoTo Bar[/vbcode]
    http://www.monsterlizard.com

  3. #3

    Thread Starter
    Lively Member zerodevice's Avatar
    Join Date
    Mar 2004
    Posts
    88

    Re: How to do SMTP mail with attachment?

    geez....thansk for your help and solution on providing such easy job, but my point is to learn how it works and not just use the end product.

    so... all i need is how does it do attachment?

  4. #4
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Location
    Austin, TX - United States of America
    Posts
    1,141

    Re: How to do SMTP mail with attachment?

    I drink to make other people more interesting!
    [vbcode]On Error GoTo Bar[/vbcode]
    http://www.monsterlizard.com

  5. #5
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,907

    Re: How to do SMTP mail with attachment?

    You need to create an MIME encoded meessage. In effect the message is split up into different parts, each different part can be of a different mime type. For example the first part can be plain text, the second HTML and the thrid and image. This tutorial explains in detail how to encode binary data attachments for includsion in emails:

    http://www.vbip.com/winsock/winsock_uucode_01.asp

    Another method of encoding attachments is base 64 encoding. This converts each character into a base64 digit (base64 being a number system like base 16(hex) or base10 (decimal)). You can find a tool to do this here: here
    Last edited by visualAd; Mar 8th, 2005 at 03:03 AM.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  6. #6

    Thread Starter
    Lively Member zerodevice's Avatar
    Join Date
    Mar 2004
    Posts
    88

    Re: How to do SMTP mail with attachment?

    ok, cool.. i'll try it out..

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width