Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to create a new email from command line and automatically add an attachment. The following is the closest I have gotten, it works apart from adding the attachment. I have also tried using &attach=... and &attachment=...

start mailto:emailadress?subject=My email&body=some text&attachments="c:/AUTOEXEC.BAT"

share|improve this question

2 Answers 2

up vote 2 down vote accepted

I figured it out. It works using the following commmand:

C:\Program Files\IBM\Lotus\Notes>notes mailto:email@address.com?attach=c:\autoexec.bat

share|improve this answer

Thanks, just what i needed!

If you still want subject and body you'd have to escape the "&" (with ^). Else it is interpreted as a new command. e.g.:

C:\Program Files\IBM\Lotus\Notes>notes mailto:email@address.com?subject=My email^&body=some text^&attach=c:\autoexec.bat
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.