Jump to content

Problem To Send Email With Attachment By Using 'mailto'


abhi_w3schools
 Share

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...