Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


shell and email


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-02-2008, 09:35 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 141
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 10:04 PM. Reason: Very slow brain...
Reply With Quote
  #2 (permalink)  
Old 07-02-2008, 10:54 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 141
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, 02:21 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
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, 08:33 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,683
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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 08:37 AM.
Reply With Quote
  #5 (permalink)  
Old 07-03-2008, 11:19 AM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 141
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 On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 08:29 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0