how can I add body to the mailto link from console Win?

笑着哭i 提交于 2019-12-12 05:29:44

问题


I've this problem:

I'm trying to send an email from the command line but if I do:

mailto: example@rat.it?subject=subject&body=body

The cmd returns me: "body" non è riconosciuto come comando interno o esterno, un programma eseguibile o un file batch.

I only manage to write an email with the subject and without the body, How can I add the Body?

Please help me


回答1:


almost there...

This works:

  start mailto:"example@rat.it?subject=subject&body=body"

EDIT: but it puts an extra "to the beginning of the address... (you can avoid the extra " at the end of the body by inserting a space in front of it)

EDIT2: but this works:

start "" "mailto:example@rat.it?subject=subject&body=body "


来源:https://stackoverflow.com/questions/19771429/how-can-i-add-body-to-the-mailto-link-from-console-win

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!