Email adapters example using data sources and targets

= RUN("XExLogEM.mmc",  " -WD  -AE=" + GETDIRECTORY( AuditLog )+
"XExLogEM.log" +  " -IF1 " + GETFILENAME(AuditLog) +  " -
OAEMAIL1 `-T -PR "+ Protocol Field:EmailOptionRec + " -U "" + 
User Field:EmailOptionRec + "" " + 
IF(PRESENT(#01 Destination Field:EmailOptionRec), "-TO "" + #01 
Destination Field:EmailOptionRec + "" ", NONE) + 
IF(PRESENT(#02 Destination Field:EmailOptionRec), " -TO "" + 
#02 Destination Field:EmailOptionRec + "" ", NONE) +
IF(PRESENT(#03 Destination Field:EmailOptionRec), " -TO "" + 
#03 Destination Field:EmailOptionRec + "" ", NONE) + 
" -CC "squentin" -SUB "" + Subject Field:EmailOptionRec + "" " 
+ " -TEXT ""+ Text Field:EmailOptionRec + """ +
" -ATTACH "" + Attachment Field:EmailOptionRec + "" ` "   )