how can I add body to the mailto link from console

2019-09-16 15:47发布

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

标签: email cmd mailto
1条回答
看我几分像从前
2楼-- · 2019-09-16 16:15

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 "
查看更多
登录 后发表回答