Link to home
Start Free TrialLog in
Avatar of xtine
xtine

asked on

Is there a way to attach file with "mailto"?

Hi
Is there a way to attach file (.doc) with "mailto" in javascript? I don't have cdont installed on my server. And I am using MS Outlook.  Currently I am emailing with something like the below:
  var to = "a@aaa.com";
  var cc = "b@bbb.com";
 
  var doc = "mailto:" + to +
      "?cc=" + cc +
      "&subject=" + escape(subject) +
      "&body=" + escape(body);

  // POP UP EMAIL MESSAGE WINDOW
  window.location = doc;

Thanks...
Avatar of bebonham
bebonham

maybe you could send them a link in the email...

but not a file
Mailto is very limited. No attachments, no way of being sure it's even going to WORK.

You're depending on the client to send it and to have a way TO send it -- lots of people don't have a mail client set up, and if they don't, you'll get nothing.
Avatar of xtine

ASKER

hmm...does it mean that CDONT the only way to send attachment in a email?
Which means the component must be installed in the server?
Not the only way -- but it does have to be server side, not client side.

Unless you just have them open a new mail message and write the contents and attach it themselves. Which is what mailto does -- opens a new mail window. And that's pretty much ALL it does.
Avatar of xtine

ASKER

But can CDONT allows me to attach an attachment to the email, trigger my email program and allows me to edit the attachment, save it in the mail and send it only when I click send?
ASKER CERTIFIED SOLUTION
Avatar of webwoman
webwoman

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xtine

ASKER

Thanks for your advice