BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-22-2007, 09:16 AM   #1 (permalink)
Talking BlackBerry Encyclopedia
 
Dispatcher35's Avatar
 
Join Date: Feb 2006
Location: Marlborough, MA
Model: 8350i
PIN: 4026f12b
Carrier: Nextel
Posts: 235
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Looking for software

Please Login to Remove!

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=4026F12b~~AIM=Mikeyp158
[email address]
Offline  
Old 07-22-2007, 09:56 AM   #2 (permalink)
BlackBerry B Boy
 
jeremyckitching's Avatar
 
Join Date: Apr 2007
Model: 9700
OS: 5.0.0.415
PIN: 215BE1F8
Carrier: T-Mobile U.S.A.
Posts: 4,243
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Offline  
Old 07-22-2007, 12:58 PM   #3 (permalink)
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/
Offline  
Old 07-22-2007, 05:45 PM   #4 (permalink)
Talking BlackBerry Encyclopedia
 
Dispatcher35's Avatar
 
Join Date: Feb 2006
Location: Marlborough, MA
Model: 8350i
PIN: 4026f12b
Carrier: Nextel
Posts: 235
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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=4026F12b~~AIM=Mikeyp158
[email address]
Offline  
Old 07-22-2007, 07:23 PM   #5 (permalink)
Talking BlackBerry Encyclopedia
 
DiRN's Avatar
 
Join Date: Jul 2006
Model: 8900
Carrier: at&t
Posts: 320
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Offline  
Old 07-22-2007, 08:01 PM   #6 (permalink)
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/
Offline  
Old 07-22-2007, 09:26 PM   #7 (permalink)
Talking BlackBerry Encyclopedia
 
Dispatcher35's Avatar
 
Join Date: Feb 2006
Location: Marlborough, MA
Model: 8350i
PIN: 4026f12b
Carrier: Nextel
Posts: 235
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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=4026F12b~~AIM=Mikeyp158
[email address]
Offline  
Old 07-22-2007, 10:01 PM   #8 (permalink)
BlackBerry Master
 
djm2's Avatar
 
Join Date: Jul 2007
Model: 9780
PIN: N/A
Carrier: T-Mobile
Posts: 4,637
Post Thanks: 29
Thanked 12 Times in 12 Posts
Default

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!)
Offline  
Old 07-22-2007, 10:06 PM   #9 (permalink)
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/
Offline  
Old 07-23-2007, 12:24 AM   #10 (permalink)
CrackBerry Addict
 
Klotar's Avatar
 
Join Date: May 2007
Location: Winnipeg MB Canada
Model: 9700R
OS: 7.1.0.190
PIN: On Request
Carrier: Rogers Wireless
Posts: 902
Post Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
Offline  
Old 07-23-2007, 01:55 PM   #11 (permalink)
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/
Offline  
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-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.