This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to specify Kmail email recipient from terminal?

Tags: None
(comma "," separated)
sam_tuke
Registered Member
Posts
10
Karma
0
Executing "kmail --help" shows the following available CLI arguments:
Code: Select all
  -s, --subject <subject>   Set subject of message
  -c, --cc <address>        Send CC: to 'address'
  -b, --bcc <address>       Send BCC: to 'address'
  -h, --header <header>     Add 'header' to message
  --msg <file>              Read message body from 'file'
  --body <text>             Set body of message
  --attach <url>            Add an attachment to the mail. This can be repeated
  --check                   Only check for new mail
  --composer                Only open composer window
  --view <url>              View the given message file

None of these allow you to set the message recipient however (the "To" field).

This works:
Code: Select all
kmail --cc "test@test.com" --subject "This is a test email message" --msg /path/to/message-file

But how can I specify the recipient, rather than just CC?

Thanks! Sam.
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
You write it as

Code: Select all
kmail --cc "test@test.com" --subject "This is a test email message" --msg /path/to/message-file real.recipient@test.com


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
sam_tuke
Registered Member
Posts
10
Karma
0
einar wrote:You write it as...

Works great, thanks!

Would be cool to add this to the cli help at some stage.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]