maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   mailcmd - send email from commandline (https://talk.maemo.org/showthread.php?t=82918)

nicolai 2012-03-08 22:36

mailcmd - send email from commandline
 
http://maemo.org/packages/view/mailcmd/
Hi,
this is a simple command line utility to send
emails.
It uses your default email account from your
email applications (modest).
To send an email just enter the email subject,
receiver address(es) and type in your message
(finish up with ctrl+d). Examples:

mailcmd -s subject recipients
your message

or

echo "your message" | mailcmd recipients

If you have configured modest for autoupdate, the message
is sent the next time you are online. Otherwise it stays in your
outgoing folder until you push "send/receive" (in modest).

nicolai

szopin 2012-03-08 22:56

Re: mailcmd - send email from commandline
 
Wonder if this can be achieved with a script and telnet to smtp port (25?), would also allow you to send as bill.gates@microsoft.com, sent yesterday if you find a server that doesn't require encryption (good old times).

qwazix 2012-03-08 23:04

Re: mailcmd - send email from commandline
 
I would prefer to send one as elop@nokia.com with subject release the N950 worldwide

szopin 2012-03-08 23:09

Re: mailcmd - send email from commandline
 
Elop/BG, not much difference. You could send as obama@whitehouse.gov (there are websites that still allow you to do it, one of the funny things to do with telnet years ago, now most servers require authentication/encryption).
obama@whitehouse.gov wrote:
Stephen for god's in which we trust sake: release the N950 now!

nicolai 2012-03-10 09:48

Re: mailcmd - send email from commandline
 
New version (0.02)
- finds default email account, even if they contain whitespaces (like "Mail for Exchange")
- add an option "-a" for attachments
(echo "message" | mailcmd -a /fullpath/to/file -s subject adress(es)

nicolai

impeham 2012-11-18 18:16

Re: mailcmd - send email from commandline
 
I don't why, but mailcmd is giving me "segmentation fault" when i try to use it.

This is the command i'm using:

echo "test" | mailcmd myemail@gmail.com

nicolai 2012-11-18 19:38

Re: mailcmd - send email from commandline
 
works for me.
Do you have a mail account defined?

impeham 2012-11-18 20:17

Re: mailcmd - send email from commandline
 
yes of course - it also worked the last time i used it ~a week ago and this started happening for some reason

impeham 2012-11-18 20:21

Re: mailcmd - send email from commandline
 
i just tried to run the same command from an SSH client (my pc) and it worked fine!

the segmentation issue only happens if i run it from x-term on the device itself - strange

lonk 2013-01-13 22:24

Re: mailcmd - send email from commandline
 
is it possible to send multiple attachment?

I can send with one but not more than that


All times are GMT. The time now is 20:33.

vBulletin® Version 3.8.8