sending attachment with mail()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roy G. Vervoort

    sending attachment with mail()



    How can i simply attach an file (word.doc) to an e-mail with the mail()
    function

    roy


  • Pedro Graca

    #2
    Re: sending attachment with mail()

    Roy G. Vervoort wrote:[color=blue]
    > How can i simply attach an file (word.doc) to an e-mail with the mail()
    > function[/color]

    You have to implement MIME mail body and headers.
    See RFC2045 ( http://www.faqs.org/rfcs/rfc2045.html ).


    There are a number of pre-made scripts that already
    do what you want.
    --
    --= my mail box only accepts =--
    --= Content-Type: text/plain =--
    --= Size below 10001 bytes =--

    Comment

    • R. Rajesh Jeba Anbiah

      #3
      Re: sending attachment with mail()

      "Roy G. Vervoort" <roy.vervoort@r ojaal.nl> wrote in message news:<40328614$ 0$570$e4fe514c@ news.xs4all.nl> ...[color=blue]
      > How can i simply attach an file (word.doc) to an e-mail with the mail()
      > function[/color]

      1. http://www.google.com/search?q=php+mail+attachments
      2. http://phpmailer.sourceforge.net/

      --
      "Success is not what you achieve, but it is what you die for"
      If you live in USA, please support John Edwards.
      Email: rrjanbiah-at-Y!com

      Comment

      Working...