Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: email latest file Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mustangcoupe
Super User
Super User
Avatar

Joined: August 08 2003
Location: United States
Online Status: Offline
Posts: 308
Posted: July 06 2007 at 09:55 | IP Logged Quote mustangcoupe

I am looking to code this up and need to download the latest release tonight.... But I am going to ftp a image from my security cameras to a folder and I want to 1 up load these to another ftp site and 2 email them to my cell phone when the elk goes into alarm mode. but does anyone have a starting point for me? the files will be ftp'd to the computer running PH from the camera every minute there is motion

__________________
Todd Hannemann

HA newbie

   PowerHome - UPB - ELK    
Back to Top View mustangcoupe's Profile Search for other posts by mustangcoupe Visit mustangcoupe's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: July 06 2007 at 13:26 | IP Logged Quote TonyNo

I guess you need to make sure that you can receive the image on your phone.

I have AT&T and have not found a way to do it, so I just save the image to a file in my ph web folder.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
mustangcoupe
Super User
Super User
Avatar

Joined: August 08 2003
Location: United States
Online Status: Offline
Posts: 308
Posted: July 06 2007 at 15:45 | IP Logged Quote mustangcoupe

I don't believe it will be a problem... But I will check it tonight. But I am running windows mobile 5 on a ppc. And I can get email files, and documents no problems...

Edited by mustangcoupe - July 06 2007 at 15:46


__________________
Todd Hannemann

HA newbie

   PowerHome - UPB - ELK    
Back to Top View mustangcoupe's Profile Search for other posts by mustangcoupe Visit mustangcoupe's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: July 06 2007 at 18:15 | IP Logged Quote TonyNo

Try ph_sendemailfile.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
mustangcoupe
Super User
Super User
Avatar

Joined: August 08 2003
Location: United States
Online Status: Offline
Posts: 308
Posted: July 08 2007 at 09:15 | IP Logged Quote mustangcoupe

ph_sendemailfile("todd@thehannemannweb.us", "Basement Security Cam Photo", "Basement Security Cam Photo","C:\cameras\basement.jpeg")

I have tried with and without the quotes and it responds with an error in my formula.... As in the help menu it should have a 0 if OK or 1 if there is a email error.... I get an ! (formula error)

__________________
Todd Hannemann

HA newbie

   PowerHome - UPB - ELK    
Back to Top View mustangcoupe's Profile Search for other posts by mustangcoupe Visit mustangcoupe's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: July 08 2007 at 10:06 | IP Logged Quote TonyNo

I am getting error 2. Email in macros works for me. Digging into it...
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
mustangcoupe
Super User
Super User
Avatar

Joined: August 08 2003
Location: United States
Online Status: Offline
Posts: 308
Posted: July 08 2007 at 10:11 | IP Logged Quote mustangcoupe

ok, DUH... I am VNC'd into my machine and I didnt notice the eamil setup window that popped up.... I needed to set up an emai acccount on the machine. BUT first it pops up a outlook express window asking if it is OK to send mail.... 2nd I never received it im my other email account nor did it get returned.

edit: ok got problem 1 solved... .


Edited by mustangcoupe - July 08 2007 at 10:15


__________________
Todd Hannemann

HA newbie

   PowerHome - UPB - ELK    
Back to Top View mustangcoupe's Profile Search for other posts by mustangcoupe Visit mustangcoupe's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: July 08 2007 at 10:18 | IP Logged Quote TonyNo

OK, I just had a typo. After fixing that, it worked.

I just copied your formula and changed things to match my system.

Make sure you set up the email variables [DIALUPUSER] and [DIALUPPASSWORD].
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
mustangcoupe
Super User
Super User
Avatar

Joined: August 08 2003
Location: United States
Online Status: Offline
Posts: 308
Posted: July 08 2007 at 10:20 | IP Logged Quote mustangcoupe

I am now getting a 2 response... I'm almost there. Not on dial up so it should just send... (or do I still need to set these?)

__________________
Todd Hannemann

HA newbie

   PowerHome - UPB - ELK    
Back to Top View mustangcoupe's Profile Search for other posts by mustangcoupe Visit mustangcoupe's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: July 08 2007 at 12:39 | IP Logged Quote TonyNo

Heh. Don't think about the dial-up part. Legacy verbiage, I guess!

My error 2 was the file path being incorrect.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
mustangcoupe
Super User
Super User
Avatar

Joined: August 08 2003
Location: United States
Online Status: Offline
Posts: 308
Posted: July 08 2007 at 16:28 | IP Logged Quote mustangcoupe

hmm I tried it with the email user name and password but that still didn't send... Im getting error 2

__________________
Todd Hannemann

HA newbie

   PowerHome - UPB - ELK    
Back to Top View mustangcoupe's Profile Search for other posts by mustangcoupe Visit mustangcoupe's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: July 08 2007 at 18:16 | IP Logged Quote TonyNo

Are you 100% sure that, "C:\cameras\basement.jpeg" is correct? Maybe .jpg instead?
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
mustangcoupe
Super User
Super User
Avatar

Joined: August 08 2003
Location: United States
Online Status: Offline
Posts: 308
Posted: July 08 2007 at 18:32 | IP Logged Quote mustangcoupe

that was it.....      thanks Tony

Now I need to figure out how to check my Elk Status and play the macro on that... I just need more time to get it all working!

__________________
Todd Hannemann

HA newbie

   PowerHome - UPB - ELK    
Back to Top View mustangcoupe's Profile Search for other posts by mustangcoupe Visit mustangcoupe's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: July 10 2007 at 11:33 | IP Logged Quote dhoward

You may want to use ph_sendsmtpemailfile instead. This uses SMTP instead of MAPI and will eliminate the need for an email client or the possibility of the "Allow program to send email" type of message that pops up.

HTH,

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum