How to attach a file in mail() function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nallinattu
    New Member
    • Nov 2006
    • 11

    How to attach a file in mail() function

    Please tell me how to attach a file while sending E mail using mail() function

    Also I want to know how to authorise user account before sending mail as the server SMTP port 25 asks for this information .
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    You are double posting!! Don't do that. The double thread will be removed.

    It depends on the type of file you want to attach. See this mail sample , found in the php documentation that gives an example for attaching different file types.

    Ronald :cool:

    Comment

    • nallinattu
      New Member
      • Nov 2006
      • 11

      #3
      Originally posted by ronverdonk
      You are double posting!! Don't do that. The double thread will be removed.

      It depends on the type of file you want to attach. See this mail sample , found in the php documentation that gives an example for attaching different file types.

      Ronald :cool:
      Thank You. I had a good idea . Shall try its working . I had to post again as I found a typo in my earlier thread and was NOT knowing how to delete it !

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        No problem, I already removed the double thread.
        Hope my post can help you.

        Ronald :cool:

        Comment

        Working...