I suggest you talk to your SAS administrator to see if the sending of email from Viya has been successfully implemented and to find out what SAS email settings are required. You can also run this program to find out what your default email settings are:
proc options group = email;
run;
If no EMAILHOST server has been set then it is likely email is not configured on your SAS installation.
If email settings are populated then you could try a simple test like this:
filename mymail email "My.EmailName@gmail.com"
subject="SAS Email Test"
;
data _null_;
file mymail;
put 'This is a test.';
run;