The Print2Email supports using environment variables in the To, Cc, Bcc fields, allowing Administrators to configure user-specific email addresses for all Print2Email users.
For using environment variables, please use ‘%’ characters around the variable name, for example, %username%
The Print2Email will substitute the variables when the Email Sending window appears, or at the time of the email sending, in case of silent email sending.
For example:
%username%@blackice.com will be substituted to John@blackice.com, if the current username is John.
Some of the built-in environment variables in Microsoft Windows, that can be useful for email sending:
Environment Variable Name |
Value |
%username% |
The currently logged-in user’s name. |
%UserDnsDomain% |
Set if a user is logged on to a domain and returns the fully qualified DNS domain that the currently logged on user's account belongs to. |
%computername% |
The computer name. |
Using Domain User Email Address using variables
Print2Email also has a built-in environment variable that can be used on Domain Computers:
Environment Variable Name |
Value |
%currentuser% |
The configured email address is configured for the currently logged-in domain user. |
To use the %currentuser% variable, the email address has to be configured by System Administrators, on the Domain Controller computer, in Active Directory Users and Computers > Users:
The Print2Email will substitute the %currentuser% variable when the Email Sending window appears, or at the time of the email sending, in case of silent email sending.
In this example, the %currentuser% will be substituted to john.hancock@blackice.com.