SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Apr 2005
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question email attachment

    Plz help, I would like to attach a document to the email, any idea of how to do it?

  2. #2
    SitePoint Wizard Rick's Avatar
    Join Date
    Oct 2002
    Location
    Lancashire, UK
    Posts
    3,847
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you mean your trying to attatch something to an email in something like Outlook express?
    Rick

  3. #3
    SitePoint Member
    Join Date
    Apr 2005
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry for not mentioning that I meant writing in php script to send an email, I used this
    "@mail($email, $subject, $message, "From:". $email);" which works on the intranet only but I would like to do is to attach a document to it but I don't know how and also how do I send it to external emails.
    Last edited by chindiwo; Apr 19, 2005 at 04:45. Reason: spelling

  4. #4
    SitePoint Wizard Rick's Avatar
    Join Date
    Oct 2002
    Location
    Lancashire, UK
    Posts
    3,847
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem - moved to the PHP forum
    Rick

  5. #5
    SitePoint Wizard Rick's Avatar
    Join Date
    Oct 2002
    Location
    Lancashire, UK
    Posts
    3,847
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check out this SitePoint Article Advanced email in PHP specificaly page 5 - File Attachments.

    You might also want to check out PHPMailer - this should allow you to send emails with attatchments via php without you having to do all the leg work yourself.

    Hope this answer your question
    Rick


Bookmarks

Posting Permissions

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