Programmetically add attachement to email.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nilayanand
    New Member
    • Nov 2006
    • 10

    Programmetically add attachement to email.

    Hi there,

    My application has link to open email client with Subject and CC field auto filled with data. I did it by placing html snippet like following:
    <a href="mailto:ni lay@csomedomain .com?Subject=Te st&Cc=other@som edomain.com">Ma il</a>

    Is there any way to add attachent too?

    Thanks

    --Nilay
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    You cannot attach a file using the mailto: hyperlink, as you do. This hyperlink merely opens the default email client window and fills in some text in the input fields.

    An attachment is something quite different.
    You can develop an email sending program yourself, collecting the information from your screen, setting up the To, From, Cc, Bcc etc. fields, setting up the headers and using the PHP mail() function. That way you don't need your PC's email program.

    Ronald :cool:

    Comment

    • seangates
      New Member
      • Dec 2006
      • 19

      #3
      There's always AJAX, but you would also need a <input type="file" ... > field.

      Sean

      Comment

      Working...