Question : How do i use DOS/Run to attach a file and email using mailto: ?

I would like to try and send an email with an attachment from a DOS or run line.

Already is can mailto:[email protected] ?subject=SUBJECT , which will open my email client and populate the subject.

I would like to be able to select a file to attach as part of the CLI, and , if possible find an entry that will populate the date after the subject.

Code Snippet:
1:
mailto:[email protected] ?subject=SUBJECT

Answer : How do i use DOS/Run to attach a file and email using mailto: ?

I'm unaware of any way to specify an attachment using mailto:.  Neither RFC 2368 (http://www.rfc-editor.org/rfc/rfc2368.txt) nor this KB article (http://support.microsoft.com/kb/287573) mention attachments.

However, it would be possible to adapt the vbscript from this article to accept the attachment location as a command line argument and include the date in the subject:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1129.mspx

Would this be acceptable for what you're trying to do?
Random Solutions  
 
programming4us programming4us