BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links




Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
Dispatcher35 Offline
Talking BlackBerry Encyclopedia
 
Dispatcher35's Avatar
 
Posts: 218
Join Date: Feb 2006
Location: Marlborough, MA
Model: 7100i
PIN: 400F6810
Carrier: Nextel
Default Looking for software - 07-22-2007, 09:16 AM

What I am looking for is not really BB software but will be used in conjunction with my BB.

What I need to do is find an application that I can run on my PC and at a user defined interval (i.e. every 10 minutes) take the contents of a folder (1 JPG file) and forward it to my BB. The PC that this file is on has Outlook XP but I can not find anything there or in Windows Task Scheduler.

TIA
Mike



Marlborough, MA
BB PIN=400F6810~~AIM=Mikeyp158
[email address]
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
jeremyckitching Offline
BlackBerry Master
 
jeremyckitching's Avatar
 
Posts: 3,802
Join Date: Apr 2007
Model: 8220
OS: 4.6.0.174
Carrier: T-Mobile
Default 07-22-2007, 09:56 AM

Wirelessly posted (BlackBerry8700/4.2.1 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/100)

I haven't heard of any software that can do this. If you find anything let us know.


Answers to common questions: BlackBerryFAQ.com
Search for answers: Search
Google Talk ID: jckitch78
   
  (#3 (permalink)) Old
rivviepop Offline
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Posts: 2,166
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Default 07-22-2007, 12:58 PM

You could do this with 4 things at no cost:

1) Blat: Win32 commandline SMTP mailer (happy mailing : Blat online)
2) Task Scheduler
3) NT shell script (aka batch file)
4) SMTP host

Install Blat, I will assume it's 'c:\blat\blat.exe' as a generic default. I will use 'mail.my-isp.com' - this could be anything that works for you, you'll have to figure this info out -- it could even be your local Exchange server running SMTP.

Code:
@echo off

set EMAIL="my@email.com"
set SERVER="mail.my-isp.com"
set PORT="25"
set TEXT="c:\files\emailcontent.txt"
set FILE="c:\files\myfile.jpg"
set BLAT="c:\blat\blat.exe"

set MYDATE=%date:~-4,4%%date:~-7,2%%date:~-10,2%
set MYTIME=%time:~-0,2%%time:~+3,2%

set SUBJECT="JPG File: %MYDATE% %MYTIME%"

if exist %FILE% (
  %BLAT% %TEXT% -to %EMAIL% -f %EMAIL% -s %SUBJECT% -server %SERVER% -p %PORT% -attach %FILE% -base64
  if errorlevel 0 (
    echo "File sent OK"
  ) else (
    echo "Mailing error! Blat exit code: %ERRORLEVEL%"
  )
) else (
  echo "%FILE% not found!"
)
Save that as "emailjpg.bat" in a folder, let's assume c:\files\ is where you save it; notice that TEXT points to a file that contains the text to be emailed, you'll need to create that file as well (it could be anything). FILE points at your JPG file in question; now set up your Task Scheduler to run this batch file every ten minutes and it will send you that JPG and have the date/time in the Subject: field for easy sorting and stuff.

NOTE: I wrote that script off the top of my head, not even running Windows so I can't test it 100%. But, it looks good on paper - you may have to tidy up a thing or two if it doesn't work right away, roll with the punches.
   
  (#4 (permalink)) Old
Dispatcher35 Offline
Talking BlackBerry Encyclopedia
 
Dispatcher35's Avatar
 
Posts: 218
Join Date: Feb 2006
Location: Marlborough, MA
Model: 7100i
PIN: 400F6810
Carrier: Nextel
Default 07-22-2007, 05:45 PM

rivviepop - That did the trick with one small exception, the shortest time frame Windows Task Scheduler allows is daily. I did find a free task scheduler that does can work as low as 1 minute intervals so I'm all set now. The program now sends the latest picture from my webcam program to my BB every 20 minutes.

You are the man! Thanks!!

Mike



Marlborough, MA
BB PIN=400F6810~~AIM=Mikeyp158
[email address]
   
  (#5 (permalink)) Old
DiRN Offline
Talking BlackBerry Encyclopedia
 
DiRN's Avatar
 
Posts: 316
Join Date: Jul 2006
Model: 8120
Carrier: at&t
Default 07-22-2007, 07:23 PM

After creating a task in Task Scheduler, open it's Properties and go to Schedule > Advanced. You can check Repeat Task and set it to run more often than daily.
   
  (#6 (permalink)) Old
rivviepop Offline
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Posts: 2,166
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Default 07-22-2007, 08:01 PM

Quote:
Originally Posted by Dispatcher35 View Post
rivviepop - That did the trick with one small exception, the shortest time frame Windows Task Scheduler allows is daily. I did find a free task scheduler that does can work as low as 1 minute intervals so I'm all set now. The program now sends the latest picture from my webcam program to my BB every 20 minutes.

You are the man! Thanks!!

Mike
Glad to help! Usually I get people rolling their eyes when I start in with the scripting, glad it doesn't always fall on deaf ears.
   
  (#7 (permalink)) Old
Dispatcher35 Offline
Talking BlackBerry Encyclopedia
 
Dispatcher35's Avatar
 
Posts: 218
Join Date: Feb 2006
Location: Marlborough, MA
Model: 7100i
PIN: 400F6810
Carrier: Nextel
Default 07-22-2007, 09:26 PM

Quote:
Originally Posted by rivviepop View Post
Glad to help! Usually I get people rolling their eyes when I start in with the scripting, glad it doesn't always fall on deaf ears.
It did fall on deaf ears but I sat down and played with it till I got it to work.

Mike



Marlborough, MA
BB PIN=400F6810~~AIM=Mikeyp158
[email address]
   
  (#8 (permalink)) Old
djm2 Offline
BlackBerry Extraordinaire
 
djm2's Avatar
 
Posts: 2,066
Join Date: Jul 2007
Model: 8830
PIN: N/A
Carrier: Sprint
Default 07-22-2007, 10:01 PM

Quote:
Originally Posted by rivviepop View Post
Glad to help! Usually I get people rolling their eyes when I start in with the scripting, glad it doesn't always fall on deaf ears.
Not the only one -- I'm still using scripts from Dos3.1 days! (Although this one is pretty good!)
   
  (#9 (permalink)) Old
rivviepop Offline
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Posts: 2,166
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Default 07-22-2007, 10:06 PM

Quote:
Originally Posted by djm2 View Post
Not the only one -- I'm still using scripts from Dos3.1 days! (Although this one is pretty good!)
I started a thread earlier you might be interested in:

http://www.blackberryforums.com/off-...ting-book.html
   
  (#10 (permalink)) Old
Klotar Offline
CrackBerry Addict
 
Klotar's Avatar
 
Posts: 607
Join Date: May 2007
Location: Winnipeg MB Canada
Model: 9000R
OS: 4.6.0.190
PIN: 207BADEB
Carrier: Rogers Wireless
Default 07-23-2007, 12:24 AM

I have a question, although I don't have a use for such a script right this moment. I can follow the logic of the script (not bad for someone who doesn't write scripts or program or anything), but would this work for a "at home / not at work" kinda person? What I mean is, does the script log into the email account at the isp to send it?

I didn't see any login type variables, so I thought I'd ask.
   
  (#11 (permalink)) Old
rivviepop Offline
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Posts: 2,166
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Default 07-23-2007, 01:55 PM

Quote:
Originally Posted by Klotar View Post
I have a question, although I don't have a use for such a script right this moment. I can follow the logic of the script (not bad for someone who doesn't write scripts or program or anything), but would this work for a "at home / not at work" kinda person? What I mean is, does the script log into the email account at the isp to send it?

I didn't see any login type variables, so I thought I'd ask.
It could be enhanced to support that; Blat doesn't have internal SSL support so I'd be wary of using it, hence not a generally coded script above using username/password for SMTP authentication. There is info on the Blat examples page about using 'stunnel' to provide an SSL connection to your authenticating SMTP server which I would advice looking at first, or even finding another app like Blat that includes SSL support.

Along the same lines, if your ISP uses "pop-before-smtp" you would want to enhance the script to connect via POP first, then SMTP. My advise about SSL support applies to POP as well, you should always do everything in your power to never, ever pass your passwords in the clear over the internet. Sometimes if you have to you have to, but as a general rule it's a no-no.
   
Closed Thread


Thread Tools

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






Copyright © 2004-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1