Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

shell and email

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-02-2008, 08:35 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 173
Default shell and email

Email addresses found e.g. in this forum often contain hidden a command e.g. "mailto:someone@hotmail.com". Clicking on the link starts the default mail program, with a new mail, and puts the email address in the right place in the new mail.

Is there some way of doing something similar in Basic4ppc? (without knowing what the default program is) perhaps with the shell command?

all the best / Björn


Edit:
of course I could have tried the command as shell("mailto:someone@hotmail.com","") and I would have found that that works ok... Oh well, I hope someone else also benefits from this

Last edited by BjornF : 07-02-2008 at 09:04 PM. Reason: Very slow brain...
Reply With Quote
  #2 (permalink)  
Old 07-02-2008, 09:54 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 173
Default

Hmm, although it now works I wonder if someone could explain to me WHY it works? I mean "mailto:xx@yyyy" is not a file... (which it should be according to the manual info on the shell command)

Are there any other commands (like "mailto:") which can be sent directly via the shell command?

all the best / Björn
Reply With Quote
  #3 (permalink)  
Old 07-03-2008, 01:21 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 810
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Bjoern,

Interesting finding, indeed.

"mailto:" is a keyword in HTML, while I assume that the framework launches
the default mailer as it sees it. If you have a phone, give "phoneto:" or "tel:"
a try (got no phone here for testing).

Anyway, I believe that the outlook library supports a full set of email functions,
provided the target device runs WM5 or higher.

Thanks a lot for sharing this.
Cheers
Robert
Reply With Quote
  #4 (permalink)  
Old 07-03-2008, 07:33 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by BjornF View Post
WHY it works? I mean "mailto:xx@yyyy" is not a file...
Actually it is! Or rather the SendTo shortcut is CodeProject: SendTo mail recipient. Free source code and programming help

See the paragraph starting "The trick is ..." in the section "Introducing the SendTo mail shortcut".

Last edited by agraham : 07-03-2008 at 07:37 AM.
Reply With Quote
  #5 (permalink)  
Old 07-03-2008, 10:19 AM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 173
Default

Thank you for the link - it looks like it should be possible to do all kinds of interesting things with the shell command!

Best wishes / Björn
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Example Email prog complier error Phil2 Bug Reports 3 08-28-2008 07:01 PM
Send/receive email on device aerohost Questions (Windows Mobile) 1 06-30-2008 05:46 AM
currently-selected email message, contact, or appointment John F. Eldredge Questions (Windows Mobile) 2 04-30-2008 12:21 PM
DesktopOnly V2.0 - Adds email support Erel Official Updates 0 12-24-2007 12:22 PM
Anyone get the Email library to work? mwaite Bug Reports 9 05-18-2007 10:19 AM


All times are GMT. The time now is 10:01 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0