abhi_w3schools Posted September 22, 2009 Share Posted September 22, 2009 Hi Everyone,I have faced a problem during my project which is as follows:I have used 'mailto' in my javascript for sending email with attachment.i have used following code:<'mailto:abhishek.nath@xxx.com?subject=Software&body=see attachment&attachment=C:/tools/mailto.txt'>This code added mail subject and body but not attached the file.Then i have used the following codes:<'mailto:abhishek.nath@xxx.com?subject=Software&body=see attachment&attachment="C:/tools/mailto.txt"'><'mailto:abhishek.nath@xxx.com?subject=Software&body=see attachment&attachment=""C:/tools/mailto.txt""'>On the above both cases, shows same error:<The command line argument is not valid. Verify the switch you are using.>I can't find any way to resolve this problem, although i have to send mail with attachment by using 'mailto'. :)Please suggest me for my further development.Bye Link to comment Share on other sites More sharing options...
Synook Posted September 22, 2009 Share Posted September 22, 2009 How did you use that code?Anyway, it is highly unlikely that you can use a client-side script like that to send mail, because it's highly insecure, not to mention entirely platform dependent. Link to comment Share on other sites More sharing options...
GermanPrince Posted September 23, 2009 Share Posted September 23, 2009 Uh, it may be a problem of the interpeter searchig for 'C:\tools\mailto.txt' on the interpeter's end. Link to comment Share on other sites More sharing options...
jlhaslip Posted September 24, 2009 Share Posted September 24, 2009 Never seen a mailto sending an attachment.Can you supply a link that describes the attachment being possible with mailto? Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.