Notices


Reply
Thread Tools
nicolai's Avatar
Posts: 1,637 | Thanked: 4,422 times | Joined on Apr 2009 @ Germany
#1
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
 

The Following 12 Users Say Thank You to nicolai For This Useful Post:
Posts: 2,076 | Thanked: 3,255 times | Joined on Feb 2011
#2
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's Avatar
Moderator | Posts: 2,621 | Thanked: 5,429 times | Joined on Jan 2010
#3
I would prefer to send one as elop@nokia.com with subject release the N950 worldwide
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jolla contactlaunch timenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
 
Posts: 2,076 | Thanked: 3,255 times | Joined on Feb 2011
#4
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's Avatar
Posts: 1,637 | Thanked: 4,422 times | Joined on Apr 2009 @ Germany
#5
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
 

The Following 5 Users Say Thank You to nicolai For This Useful Post:
Posts: 669 | Thanked: 430 times | Joined on May 2010
#6
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's Avatar
Posts: 1,637 | Thanked: 4,422 times | Joined on Apr 2009 @ Germany
#7
works for me.
Do you have a mail account defined?
 

The Following User Says Thank You to nicolai For This Useful Post:
Posts: 669 | Thanked: 430 times | Joined on May 2010
#8
yes of course - it also worked the last time i used it ~a week ago and this started happening for some reason
 
Posts: 669 | Thanked: 430 times | Joined on May 2010
#9
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
 
Posts: 215 | Thanked: 348 times | Joined on May 2011
#10
is it possible to send multiple attachment?

I can send with one but not more than that
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 15:45.