469,295 Members | 1,984 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,295 developers. It's quick & easy.

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:

Expand|Select|Wrap|Line Numbers
  1. function emailForm(){ 
  2.  
  3. var email = "example@example.com"; 
  4. var subject = "<c:out value="${model.name}" />: Domain Change"; 
  5. var body_message = "test0D%0D%0D%0D"; 
  6.  
  7. 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?
May 27 '10 #1
1 2091
Dormilich
8,651 Expert Mod 8TB
send mail through your server. mailto: is not very reliable.
May 28 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Obscurr | last post: by
5 posts views Thread by elsenraat_76 | last post: by
1 post views Thread by novice_developer | last post: by
4 posts views Thread by Martin Feuersteiner | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.