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...
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...
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.
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.
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?
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.
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your advice
but not a file