Results 1 to 2 of 2

Thread: I need help with attachments

  1. #1

    Thread Starter
    Hyperactive Member New to VB 6's Avatar
    Join Date
    Apr 2002
    Posts
    362

    Question I need help with attachments

    I'm using this code to send mail to myself from a web page.
    I want to attach a file to the email sent.
    Can anyone help me?

    I need code to look at, to understnd how it works.

    PHP Code:
    <?
    $subject = "{$_POST["subject"]}"; 

    $message = "
    <html> 
    <head> 
    <title>{$_POST["subject"]}</title> 
    </head> 
    <body>
    Some links and text here

    </body></html> ";

    $headers = "From: MY.COM <[email protected]>\r\n";
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
    /* Attachments*/
    $headers .= "Content-Type: image/jpeg; name={$_POST["attach"]}"
    $headers .= "Content-Disposition: attachment; filename={$_POST["attach"]}"



    mail("[email protected]", $subject, $message, $headers);
    ?>
    [VBCODE]
    Option Explicit
    Dim XXX As Porn
    Dim Wife As Nag

    Private Sub *****_Resize()
    On Error Resume Next
    Get Viagra
    End Sub
    [/VBCODE]

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    My evil laugh has a squeak in it.

    kristopherwilson.com

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