#1
  1. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Location
    Hong Kong
    Posts
    71
    Rep Power
    15
    Anyone know that how to attach file when I use the function mail() in PHP?
  2. #2
  3. No Profile Picture
    Robert_J_Sherman
    Guest
    Devshed Newbie (0 - 499 posts)
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by RayRay:
    Anyone know that how to attach file when I use the function mail() in PHP?[/quote]

    I've seen this question here a number of times, and to date, I don't think I've seen any form of answer.

    Since file attachments are part of the MIME body of an message, I would say that you wouuld need to use a binary encode function, and make it part of your "message" variable for the "mail(to,subject,message,headers)" function.



    ------------------
    SnR Graphics,
    Low Cost Hosting and Web Development.

Similar Threads

  1. Pointer problem in opening a file
    By LAKI in forum C Programming
    Replies: 13
    Last Post: February 11th, 2004, 08:27 AM
  2. Pointer problems opening file *formatted*
    By LAKI in forum C Programming
    Replies: 4
    Last Post: February 11th, 2004, 06:06 AM
  3. Help with script
    By akastarlight in forum Perl Programming
    Replies: 1
    Last Post: February 6th, 2004, 06:55 AM
  4. PHP file upload script trouble
    By casbboy in forum PHP Development
    Replies: 9
    Last Post: February 5th, 2004, 07:42 PM
  5. CHILISOFT attach file problem
    By mat41 in forum ASP Programming
    Replies: 0
    Last Post: January 19th, 2004, 11:33 PM

IMN logo majestic logo threadwatch logo seochat tools logo