Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Notifying by E-Mail

 
Post new topic   Reply to topic     Forum Index -> Wish List
Author Message
newsline



Joined: 14 Oct 2005
Posts: 6

PostPosted: Fri Oct 14, 2005 11:21 am    Post subject: Notifying by E-Mail Reply with quote

First of all I must say is a great peace of software! It took me only 3 mins to set up two perfect synchronizing folders - wow!

Now the only thing I'm missing is to let VVLauncher to notify me by E-Mail if there is a change in the content of the watched folders.

Do you think you could include this featurein one of the next versions?

Best regards

Toni Antoniadis
IT Management
NEWSLINE Presse & Marketing
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8672

PostPosted: Fri Oct 14, 2005 1:58 pm    Post subject: Reply with quote

Thank you for the compliments ! Very Happy

Do you mean that you would like to receive an e-mail with the execution results or an e-mail every time a folder content changes ?
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Guest






PostPosted: Fri Oct 14, 2005 2:46 pm    Post subject: Reply with quote

TGRMN Software wrote:
Thank you for the compliments ! Very Happy

Do you mean that you would like to receive an e-mail with the execution results or an e-mail every time a folder content changes ?


I just need a comfirmation that a files has changed and that the sync is completed - perhaps you could add a list of files changed (optional).

I need it because the sync process is running on the background on the server and my users need to know when there are updates in the watched folders so that they can access the new files.
Back to top
Ken
Guest





PostPosted: Thu Nov 10, 2005 6:18 pm    Post subject: I second the complements and request Reply with quote

I now have it running on two machines at work and plan to add a few home machines to your list of installed base.

I would love to get the latest backup log file (not the whole log file) emailed to me, so I know when there are errors. I would need to enter the smtp server info, login name and password (for the mail server) and toggle the email notification on in the preferences for the job. That way I could set up a variety of jobs with different email accounts on different mail servers if needed.

Thanks!
Back to top
Guest






PostPosted: Thu Nov 17, 2005 4:05 pm    Post subject: Hope it helps Reply with quote

Hi all,

I search through this forum and found alot of request for a sample script to setup an email notification mechanism in Vice Versa. I find it quite surprising that nobody ever replied to it. At least the admins..!? Anyways, I had the same problem but finally worked out a solution using VBScript and decided to share it with you guys.

You will need to copy the following into Notepad for example and save the file as "YourExactProfileName_TheWayYouDoTheSync_end.vbs".

"TheWayYouDoTheSync" is either "manual" or "auto".

Ok, let's get down to business:

Code:
Set objMessage = CreateObject("CDO.Message")

Set oArgs = WScript.Arguments
Dim result
if oArgs(0) < 1 then
   result = "Success!"
else
   result = "Some error(s) occured!"
end if


objMessage.Subject = "Vice Versa Backup Result:" & result
objMessage.From = "backup@yourdomain.com"
objMessage.To = "yourname@yourdomain.com"
objMessage.TextBody = "The backup associated with the vbscript file " & WScript.ScriptName & " finished with the exit code #" & oArgs(0) & ". Check the help file for the meaning of this error code... and your log file for the error(s) details."

objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "your.smtp.server"

objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

objMessage.Configuration.Fields.Update

objMessage.Send



Now, you will need to change these lines:

Code:
objMessage.From = "backup@yourdomain.com"
objMessage.To = "yourname@yourdomain.com"
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "your.smtp.server"


to your personnal information. If you want to, you can also change the way the message is sent like the subject of the message, the body...etc.

Of course you can add some stuff to the script like all the Exit Code messages but I don't have the time to deal with that. If you do, at least you have a starter.

Hope that helps somebody!
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8672

PostPosted: Fri Nov 18, 2005 6:35 am    Post subject: Reply with quote

Thanks for posting this script Very Happy
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8672

PostPosted: Wed Feb 15, 2006 10:36 pm    Post subject: Reply with quote

More email sending scripts are available here:

http://www.paulsadowski.com/WSH/cdo.htm
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Nickman67



Joined: 18 Mar 2006
Posts: 8
Location: Seattle, WA

PostPosted: Thu Mar 30, 2006 7:22 pm    Post subject: Reply with quote

I used the above script and tagged in the following section:

http://www.paulsadowski.com/WSH/cdo.htm#LoadFromFile

in order to load the log file results into an email. Unfortunately, the ViceVersa created log file is in UNICODE and VBScript doesn't seem to be able to handle it. (VBSCript can't read binary files?) The email being generated has an empty body.

If I copy and paste the results of the log file into a new file created using TextPad then everything works fine. Amazingly, the new file is half the size of the ViceVersa created log file. Wink

Is there a preference or profile setting that will get around this problem currently, or at least a plan to address this in a future release?
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8672

PostPosted: Mon Apr 03, 2006 12:51 am    Post subject: Reply with quote

Log files in ViceVersa PRO are UNICODE so they can handle all characters in the world ... Smile


But you can instruct VBScript to open files as UNICODE, use:

Set f = fso.OpenTextFile("c:\temp\MyEmail.txt", ForReading, , TristateTrue)

instead of

Set f = fso.OpenTextFile("c:\temp\MyEmail.txt", ForReading)
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Wish List All times are GMT
Page 1 of 1

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


Powered by phpBB © phpBB Group
Copyright © TGRMN Software. TGRMN Software products: