maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Send mail (via Python code) (https://talk.maemo.org/showthread.php?t=19655)

thp 2008-04-29 20:09

Send mail (via Python code)
 
Hello!

How can I achieve the same functionality on Maemo that "xdg-email" provides on the Desktop, i.e. being able to specify a subject line and a file to attach, and it will open the default e-mail app with the subject filled in and the file attached?

Ideally, this should be directly in Python, but if not, I'd be happy with C or some shell command, too..

tme 2008-04-30 16:01

Re: Send mail (via Python code)
 
it's a shame the standard xdg tools aren't there.

you can use ossoemailinterface library to launch the mail client though it
may not let you specify both address and subject.

otherwise you can call hildon_uri_open with a mailto: uri.


All times are GMT. The time now is 18:00.

vBulletin® Version 3.8.8