Author Topic: tip: get an email by your hfs  (Read 14018 times)

0 Members and 1 Guest are viewing this topic.

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12844
    • View Profile
tip: get an email by your hfs
« on: November 05, 2008, 06:09:02 AM »
WARNING: this requires version 2.3, won't work with 2.2

You can get emails by your HFS when, lets say, a file is uploaded.
Because HFS can run external programs with macro {.exec.}
You can read more about template macros on the documentation/wiki.

Just download a software like these, that will send an email in an automatic way (command line).

http://www.beyondlogic.org/solutions/cmdlinemail/cmdlinemail.htm
http://www.blat.net/

You can then run these programs by the template itself in section [upload-success]
or better you can use event scripts (to keep things separated) with section [upload completed]

Hope it helps

Offline Fysack

  • Insane poster
  • *****
  • Posts: 587
  • present picture
    • View Profile
    • Admin
Re: tip: get an email by your hfs
« Reply #1 on: November 06, 2008, 04:06:08 PM »
I havent even click the links rejetto, man`o man! This is Star wars, this is 5`th element.
Do you realize all the things you can do with the mail today!!? (possibly yes  ;D) we talking cellphone my man..
*digging for lipshine* i love you rejetto  :-*

GOD CAN READ YOUR MIND

Ken

  • Guest
Re: tip: get an email by your hfs
« Reply #2 on: November 30, 2008, 04:20:17 PM »
Does this feature work in the portable version of HFS?

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12844
    • View Profile
Re: tip: get an email by your hfs
« Reply #3 on: December 01, 2008, 02:38:26 AM »
yes.

anyway: there's no "portable" version of hfs.
just tell hfs to save options on file, and now you are portable.

Offline softbaked

  • Occasional poster
  • *
  • Posts: 3
    • View Profile
Re: tip: get an email by your hfs
« Reply #4 on: December 01, 2008, 08:25:04 AM »
Thanks for the quick reply rejetto,

Quote
anyway: there's no "portable" version of hfs.

I'm guessing your not aware of the portable version of your great software? http://portableapps.com/node/11804
I have been using it on my usb stick for a couple weeks now from many different computers and it works great!

anyway: I was trying to get the "email trick" you were describing in this thread to work and I keep getting this error message when I try to run it from one of the templates

Quote
macro error: exec
not supported or wrong number of parameters

This is the line I have in the template.
Quote
{.exec|bmail.exe -s localhost -t myemail@address.com -f mycomputer@home.com -h -a Subject -b Body -d.}

I am using the command line email program you suggested, bmail, with a simple SMTP server (which works perfect if I run the command myself from the command line) and I have the file bmail.exe in the Data\Shared folder.

Am I using the .exec. macro correctly?

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12844
    • View Profile
Re: tip: get an email by your hfs
« Reply #5 on: December 01, 2008, 09:51:05 AM »
I'm guessing your not aware of the portable version of your great software? http://portableapps.com/node/11804

nice to know.
it's not exactly a "version", it's just a pre-configuration, the program is the same.
this consideration won't affect its usefulness.

Quote
macro error: exec
not supported or wrong number of parameters

the version distributed by port.apps is rather old.
replace it with a newer one.

Offline softbaked

  • Occasional poster
  • *
  • Posts: 3
    • View Profile
Re: tip: get an email by your hfs
« Reply #6 on: December 02, 2008, 09:13:38 AM »
Thanks again for the quick reply.

 The 'pre-configuration' of HFS here http://portableapps.com/node/11804 is using version 2.3 beta Build #183 and I know your up to Build #216 now but one of the most important features to me for the 'pre-configuration' HFS package I'm using is it being portable. If I use Build #216 from your website and install it to my USB stick will it also be portable? It's important to me that no settings, files or registry settings are saved to the local computer, I need everything to be self contained on my USB stick.

 Thanks again for all your time and effort with this software.

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12844
    • View Profile
Re: tip: get an email by your hfs
« Reply #7 on: December 03, 2008, 04:26:33 AM »
as long as i know, asking (once) HFS to save options to file is the only thing needed to make it portable. (as i told you above)

I guess you can just replace the exe file. I cannot know if that's enough, the guy who made the package knows.

Offline softbaked

  • Occasional poster
  • *
  • Posts: 3
    • View Profile
Re: tip: get an email by your hfs
« Reply #8 on: December 03, 2008, 10:29:28 AM »
Thanks again for your prompt replies rejetto,

I'll make backups of what I have and do the update then I'll let you know the progress / status if you like.

I do have just one question though, can you tell me if I have properly formatted the following line for the {.exec.} macro

Quote
{.exec|bmail.exe -s localhost -t myemail@address.com -f mycomputer@home.com -h -a Subject -b Body -d.}

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12844
    • View Profile
Re: tip: get an email by your hfs
« Reply #9 on: December 03, 2008, 01:19:19 PM »
i think you should put another | after bmail.exe

to be honest, i may have made it easier, to work without this pipe.
-_-

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12844
    • View Profile
Re: tip: get an email by your hfs
« Reply #10 on: December 05, 2008, 10:36:24 AM »
i was wrong, your version will work too.
the | is not needed.

Offline jlpelectronics

  • Occasional poster
  • *
  • Posts: 3
    • View Profile
Re: tip: get an email by your hfs
« Reply #11 on: April 10, 2009, 01:22:46 PM »
Hi Rejjeto
To receive an email when a user receives a new file in his carpet I am using the save2ftp.exe together with HFS 2.3-232... save2ftp.exe is monitoring the user`s carpet for any changes, so save2ftp.exe can email as an advice to specific users... Also, save2ftp.exe can run any batch file. I have proof that both softwares (HFS & save2ftp.exe) make a excellent combination...
Congratulations for your HFS...

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12844
    • View Profile
Re: tip: get an email by your hfs
« Reply #12 on: April 10, 2009, 02:53:51 PM »
thanks for sharing jlp.

Offline mail2sc

  • Occasional poster
  • *
  • Posts: 2
    • View Profile
Re: tip: get an email by your hfs
« Reply #13 on: January 29, 2012, 12:06:24 PM »
is it safe to use HFS to process emails? because nowadays email is the first victim of cyber attack and hfs is an open window to internet.

please help!

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12844
    • View Profile
Re: tip: get an email by your hfs
« Reply #14 on: January 30, 2012, 11:40:23 AM »
if the content and destination of the emails are fixed or restricted, there's no problem