FAQ and Knowledge Base

Main Page > Browse Categories > Scripts > E-MAIL Script: Sends E-Mail Notification After Running a Profile

E-MAIL Script: Sends E-Mail Notification After Running a Profile

This is a Visual Basic script which sends an e-mail notification after a profile run. You can install this script by following the 5 easy steps below: 

  • Save the ViceVersa PRO E-Mail Script to your ViceVersa "GlobalScripts" folder, under the ViceVersa PRO 2 installation folder (usually 'C:\Program Files\ViceVersa PRO2\GlobalScripts'). If you do not have the GlobalScripts folder, you need to update to the latest version of ViceVersa PRO 2.
  • Open the script with NotePad.
  • Edit the 5 variables at the beginning of the script USERNAME, PASSWORD, FROM_EMAIL, TO_EMAIL , SMTP_EMAIL_SERVER
  • Save the script.
  • Activate the option "Run custom scripts after execution" in the advanced profile settings for all the ViceVersa PRO profiles you want to receive an e-mail for.

Notes:

  • By default the script will send an email only if an error occurs. You can change this default behavior by setting the variable SEND_EMAIL_ONLY_IFERROR to FALSE. Then the script will always send an e-mail at the end of a profile execution.
  • You need ViceVersa PRO 2 Build 2011 or newer for this script to work.

 

The following is an example of an e-mail sent by the script.

Result: OK
Profile: My Documents - backup
Exit Code: 0
Source: C:\Documents and Settings\User\My Documents\ | C:\Documents and Settings\User\Desktop\
Target:
\\nas\winXP-ibm\My Documents\ | \\nas\winXP-ibm\Desktop\
User: Romeo
Computer Name: IBM-LAPTOP

Backup (Mirror Source to Target)

- Run Summary -
- Added Files - Source: 0 (0) - Target: 163 (16.73MB)
- Updated Files - Source: 0 (0) - Target: 11 (8.02MB)
- Deleted Files - Source: 0 (0) - Target: 0 (0)
- Added Subfolders - Source: 0 - Target: 14
- Deleted Subfolders - Source: 0 - Target: 0
- Archive Information -
- Files Added to Archive - Source: 0 (0) - Target: 10 (7.30MB)
- Files Deleted from Archive - Source: 0 (0) - Target: 2 (8.04KB)

- Final Status -
- Total Files - Source: 2,323 (1.98GB) - Target: 2,323 (1.98GB)
- Excluded Files - Source: 0 (0) - Target: 0 (0)
- Matched Files - Source: 2,323 (1.98GB) - Target: 2,323 (1.98GB)
- Single Files - Source: 0 (0) - Target: 0 (0)
- Newer Files - Source: 0 (0) - Target: 0 (0)
- Older Files - Source: 0 (0) - Target: 0 (0)
- Total Subfolders - Source: 224 - Target: 224
- Excluded Subfolders - Source: 0 - Target: 0
- Matched Subfolders - Source: 224 - Target: 224
- Single Subfolders - Source: 0 - Target: 0



User Comments
Add Comment
There are no user comments for this topic.
Add Comment
Attachments
No attachments

Did this help you?
Yes No

Statistics
72% found this information useful

Other Options
Printable Version

General Information
No. 67
Created: 02-Oct-06
Author: TGRMN Software

Download ViceVersa


Visit ViceVersa Forum
  
  
 A printable version of the entire ViceVersa FAQ and Knowledge Base is also available.

 For further queries, please contact us by E-Mail at support@tgrmn.com.