“nvsendmail.exe –n” command will fail as below if environmental variable NVEMAIL1 is not configured.
nvsendmail.exe -n
Error, env NVEMAIL1 unset.
nvsendmail command can be used to test notifications setup or used from the command line and in scripts to send mails from netvault with or without attachments to desired mailbox.
For nvsendmail to work first notifications need to be configured on the netvault server. To configure notification see kb below:
https://support.quest.com/netvault/kb/121461/configure-notifications-tutorial-video-
To test mails will be sent using nvsendmail you can use the following options displayed below I would recommend using the –d and – s options as seen in example
Example:
1/ Open CMD as administrator on the netvault server change directory to …/netvault/util
2/ Issue following command and you should receive a blank mail at the given email address with a subject of “test mail” using the configured “Outgoing E-Mail Server(SMTP)”
nvsendmail.exe -d myemailaddress@mydomain.com -s "test mail"
nvsendmail.exe
USAGE: nvsendmail.exe [-d <dest-address>] [-r <real-name>] [-s <subject>] [-f <message-file>] [-a <attach-file> [-m]
-a attaches <attach-file>
-m forces mime-format
OR: nvsendmail.exe -n
-n specifies notification mode - params taken from environment
Now, we are ready to test notifications mode. We need to set the environmental variable NVEMAIL1 or the “nvsendmail.exe –n” command will fail as below.
nvsendmail.exe -n
Error, env NVEMAIL1 unset.
1/ Set environment variable NVEMAIL1
For Linux:
To list all the environment variables, use the command "env" (or "printenv"). You could also use "set" to list all the variables, including all local variables.
To reference a variable, use $varname, with a prefix '$' (Windows uses %varname%).
To print the value of a particular variable, use the command "echo $varname".
To set an environment variable, use the command "export varname=value", which sets the variable and exports it to the global environment (available to other processes). Enclosed the value with double quotes if it contains spaces.
To set a local variable, use the command "varname=value" (or "set varname=value"). Local variable is available within this process only.
To unset a local variable, use command "varname=", i.e., set to empty string (or "unset varname").
export NVEMAIL1=myemailaddress@mydomain.com
For windows:
To set an environment variable, use the command " export varname=value ", which sets the variable and exports it to the global environment (available to other processes). Enclosed the value with double quotes if it contains spaces. To set a local variable, use the command " varname =value " (or " set varname =value ").
export NVEMAIL1=myemailaddress@mydomain.com
Or
set NVEMAIL1=myemailaddress@mydomain.com
2/ Issue the following nvsendmail command and mail should be sent to the email address specified using notifications mode
For windows:
nvsendmail.exe –n
For Linux:
./nvsendmail –n
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center