Search code examples
emailcmdmailto

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


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


Solution

  • 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 "