Email File Link via .bat file, full link isn't displaying email email body -
i'm trying write batch file in sendto menu, when send file it, email generated file hyper-linked in email's main body.
but, output partial in email's body, believe until first space in file's path:
<d:\documents
below code generates above result.
:: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :: batchfile : emaillink.bat :: author : darksprout :: purpose : email file link via outlook using richt-click 'send to' menu :: note : save file in %userprofile%\sendto :: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[jan11]~~ @echo off set _attachmentlink=%~f1 :: echo %_attachmentlink% start mailto:?body=^<%_attachmentlink%^>
i promise have looked throughout stack overflow possible resolution.
thanks in advance.
you need quotes around argument if may contain spaces. , need set of empty quotes satisfy start
:
start "" "mailto:?body=<%_attachmentlink%>"
Comments
Post a Comment