Can I add an Attachment to my Mail to Javascript Function?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • michaeljunekim
    New Member
    • May 2010
    • 1

    #1

    Can I add an Attachment to my Mail to Javascript Function?

    I'm trying to create an open mailto javascript function. Basically when a user clicks on the "email" hypertext an outlook email will open up with pre-populated TO field, SUBJECT field, and BODY field. But the next step is to attach a spreadsheet that is saved in a network drive that all users have access too.

    This is what i have so far:

    Code:
    function emailForm(){ 
    
    var email = "example@example.com"; 
    var subject = "<c:out value="${model.name}" />: Domain Change"; 
    var body_message = "test0D%0D%0D%0D"; 
    
    var mailto_link = 'mailto:'+email+'?subject='+subject+'&body='+body_message;
    I tried adding a var attachment and adding it to my var mailto_link but it didn't work. Any Suggestions?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    send mail through your server. mailto: is not very reliable.

    Comment

    Working...