Skip to content Skip to sidebar Skip to footer

Is It Possible Attach A File To An Email In Javascript?

Possible Duplicate: Attach File Through mailto URI I have an HTML link like Send Mail I would like attach a f

Solution 1:

You can try MS ActiveX:

var OA = new ActiveXObject('Outlook.Application');
var OAItem = OA.CreateItem(0);

var OAItemAtms = OAItem.Attachments;
OAItemAtms.add('http://foo.com/some_image.png');

You can read more on this here - compose-and-send-e-mail-from-javascript-by-using-outlook

Solution 2:

No.

And of course JQuery won't help since that is also Javascript.

You really need something serverside to manage this for you.

Post a Comment for "Is It Possible Attach A File To An Email In Javascript?"