| Author |  | 
      
        | mustangcoupe Super User
 
  
  
 Joined: August 08 2003
 Location: United States
 Online Status: Offline
 Posts: 308
 | 
          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
           | Posted: July 06 2007 at 09:55 | IP Logged |   |  
           | 
 |  
 __________________
 Todd Hannemann
 
 HA newbie
   
 
  PowerHome - UPB - ELK   | 
       
        | Back to Top |       | 
       
       
        |  | 
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          I guess you need to make sure that you can receive the image on your phone.
           | Posted: July 06 2007 at 13:26 | IP Logged |   |  
           | 
 |  
 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 |       | 
       
       
        |  | 
        | mustangcoupe Super User
 
  
  
 Joined: August 08 2003
 Location: United States
 Online Status: Offline
 Posts: 308
 | 
          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...
           | Posted: July 06 2007 at 15:45 | IP Logged |   |  
           | 
 |  
 Edited by mustangcoupe - July 06 2007 at 15:46
 
 __________________
 Todd Hannemann
 
 HA newbie
   
 
  PowerHome - UPB - ELK   | 
       
        | Back to Top |       | 
       
       
        |  | 
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          Try ph_sendemailfile.
           | Posted: July 06 2007 at 18:15 | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |       | 
       
       
        |  | 
        | mustangcoupe Super User
 
  
  
 Joined: August 08 2003
 Location: United States
 Online Status: Offline
 Posts: 308
 | 
          ph_sendemailfile("todd@thehannemannweb.us", "Basement Security Cam Photo", "Basement Security Cam Photo","C:\cameras\basement.jpeg")
           | Posted: July 08 2007 at 09:15 | IP Logged |   |  
           | 
 |  
 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 |       | 
       
       
        |  | 
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          I am getting error 2.
           | Posted: July 08 2007 at 10:06 | IP Logged |   |  
           | 
 |   Email in macros works for me. Digging into it... | 
       
        | Back to Top |       | 
       
       
        |  | 
        | mustangcoupe Super User
 
  
  
 Joined: August 08 2003
 Location: United States
 Online Status: Offline
 Posts: 308
 | 
          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.
           | Posted: July 08 2007 at 10:11 | IP Logged |   |  
           | 
 |  
 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 |       | 
       
       
        |  | 
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          OK, I just had a typo. After fixing that, it worked.
           | Posted: July 08 2007 at 10:18 | IP Logged |   |  
           | 
 |  
 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 |       | 
       
       
        |  | 
        | mustangcoupe Super User
 
  
  
 Joined: August 08 2003
 Location: United States
 Online Status: Offline
 Posts: 308
 | 
          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?)
           | Posted: July 08 2007 at 10:20 | IP Logged |   |  
           | 
 |  
 __________________
 Todd Hannemann
 
 HA newbie
   
 
  PowerHome - UPB - ELK   | 
       
        | Back to Top |       | 
       
       
        |  | 
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          Heh. Don't think about the dial-up part. Legacy verbiage, I guess!
           | Posted: July 08 2007 at 12:39 | IP Logged |   |  
           | 
 |  
 My error 2 was the file path being incorrect.
 | 
       
        | Back to Top |       | 
       
       
        |  | 
        | mustangcoupe Super User
 
  
  
 Joined: August 08 2003
 Location: United States
 Online Status: Offline
 Posts: 308
 | 
          hmm I tried it with the email user name and password but that still didn't send... Im getting error 2
           | Posted: July 08 2007 at 16:28 | IP Logged |   |  
           | 
 |  
 __________________
 Todd Hannemann
 
 HA newbie
   
 
  PowerHome - UPB - ELK   | 
       
        | Back to Top |       | 
       
       
        |  | 
        | TonyNo Moderator Group
 
  
  
 Joined: December 05 2001
 Location: United States
 Online Status: Offline
 Posts: 2889
 | 
          Are you 100% sure that, "C:\cameras\basement.jpeg" is correct? Maybe .jpg instead?
           | Posted: July 08 2007 at 18:16 | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |       | 
       
       
        |  | 
        | mustangcoupe Super User
 
  
  
 Joined: August 08 2003
 Location: United States
 Online Status: Offline
 Posts: 308
 | 
          that was it.....
           | Posted: July 08 2007 at 18:32 | IP Logged |   |  
           | 
 |   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 |       | 
       
       
        |  | 
        | dhoward Admin Group
 
  
  
 Joined: June 29 2001
 Location: United States
 Online Status: Offline
 Posts: 4447
 | 
          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.
           | Posted: July 10 2007 at 11:33 | IP Logged |   |  
           | 
 |  
 HTH,
 
 Dave.
 
 | 
       
        | Back to Top |       | 
       
       
        |  |