Summary: | command line send mail option | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Jon Payne <paynejp> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Mandrake RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jon Payne
2004-01-07 07:20:33 UTC
Subject: Re: New: command line send mail option Am Wednesday 07 January 2004 07:20 schrieb Jon Payne: > I have a need to use kmail to automatically send a mail message from the > command line (which I will wrap in a cron script). It ALMOST does this > from the command line by invoking; > > kmail me@yahoo.com -s "subject of message" --msg <file name> Why do you need KMail to automate sending of mails? If you use the command line anyway then you can use a command line tool too. Try "man mail", this should give you what you want. > However, this brings up the composer window, completely filled in and one > must click send or press ctrl ret to send the message, so it can not be > automated. > > Another command line option is needed to force the send without bringing > up the composer window. Command line options already used are; > -s - subject > -c - carbon copy name > -b - bcc name > --body - body text > --help - help This could get implemented, but it's certainly low on priority. > Another command line option is needed to force the send without bringing > up the composer window. Command line options already used are; > -s - subject > -c - carbon copy name > -b - bcc name This can be achieved with the command line mail command as well,; use 'mail -~' -~ Enable tilde escapes even if not in interactive mode. include ~r ~t and ~t in your file to be send and that's it. Thank you for the comments. I use kmail because it is already set up on my machine, and I use it daily for normal email. I have tried to set up mail but find the setup rather cryptic. Kmail is nice and simple. Question, why are the other command line switches even included? Is not an auto send just a logical conclusion of the exisiting functions. They seem quite useless otherwise. Best Regards Jon Payne, Atlanta USA There are existing programs that send mail automatically, apart from "mail". There is formail and sendmail itself can do it. Frankly, I find them easier (and much faster, that's to be sure) than kmail. One other thing: kmail is an X program, which requires in turn an X server running, as well as the DCOP server. Those other programs don't, but they require a running MTA. What you want to do can be achieved with a few DCOP commands. Use kdcop to find out which DCOP commands KMail offers. You can then use the command line program 'dcop' to send DCOP commands to KMail. Feel free to contact kdepim-users@kde.org for help. |