Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

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