rejetto forum

Software => HFS ~ HTTP File Server => F.A.Q.s => Topic started by: rejetto on November 05, 2008, 12:09:02 PM

Title: tip: get an email by your hfs
Post by: rejetto on November 05, 2008, 12:09:02 PM
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 (http://www.rejetto.com/wiki/index.php/HFS:_Template_macros).

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
Title: Re: tip: get an email by your hfs
Post by: Fysack on November 06, 2008, 10: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  :-*

Title: Re: tip: get an email by your hfs
Post by: Ken on November 30, 2008, 10:20:17 PM
Does this feature work in the portable version of HFS?
Title: Re: tip: get an email by your hfs
Post by: rejetto on December 01, 2008, 08: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.
Title: Re: tip: get an email by your hfs
Post by: softbaked on December 01, 2008, 02:25:04 PM
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 (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?
Title: Re: tip: get an email by your hfs
Post by: rejetto on December 01, 2008, 03:51:05 PM
I'm guessing your not aware of the portable version of your great software? http://portableapps.com/node/11804 (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.
Title: Re: tip: get an email by your hfs
Post by: softbaked on December 02, 2008, 03:13:38 PM
Thanks again for the quick reply.

 The 'pre-configuration' of HFS here http://portableapps.com/node/11804 (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.
Title: Re: tip: get an email by your hfs
Post by: rejetto on December 03, 2008, 10: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.
Title: Re: tip: get an email by your hfs
Post by: softbaked on December 03, 2008, 04:29:28 PM
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.}
Title: Re: tip: get an email by your hfs
Post by: rejetto on December 03, 2008, 07: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.
-_-
Title: Re: tip: get an email by your hfs
Post by: rejetto on December 05, 2008, 04:36:24 PM
i was wrong, your version will work too.
the | is not needed.
Title: Re: tip: get an email by your hfs
Post by: jlpelectronics on April 10, 2009, 07: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...
Title: Re: tip: get an email by your hfs
Post by: rejetto on April 10, 2009, 08:53:51 PM
thanks for sharing jlp.
Title: Re: tip: get an email by your hfs
Post by: mail2sc on January 29, 2012, 06: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!
Title: Re: tip: get an email by your hfs
Post by: rejetto on January 30, 2012, 05:40:23 PM
if the content and destination of the emails are fixed or restricted, there's no problem