Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Mail attachment
- From: javascript@xxxxxxxxxx (Mikael Lindström)
- Subject: [Javascript] Mail attachment
- Date: Thu, 28 Jun 2001 10:33:37 +0200
Hello,
Given the following rows of (javascript)code:
function mailFile(strFileName) {
//Mail file, defined by strFileName
//Set href in <A> - tag
document.all.item('lnkMailFile').href='mailto:?subject=' +strFileName
+'&body=Your file, ' +strFileName +' !!';
//Simulate click
document.all.item('lnkMailFile').click();
return;
}
you all can see what I want to do, set mail options and then simulate the
click so user can fill in emailreceipent. Also I would like to attach a file
automatically to this message so user won't have to. Is that possible at all
?
There seem to be nothing written about it when I've searched for "mailto
protocol" on the web (or I can't do a proper search).
If this subject is already discussed, please lead me to the appropriate
headline.
Regards
Mikael
- Prev by Date: [Javascript] netscape: how to write to <div> tag??
- Next by Date: [Javascript] netscape: how to write to <div> tag??
- Previous by thread: [Javascript] setting 'height' attribute of <TD> tag?
- Next by thread: [Javascript] Remote Scripting
- Index(es):