I have found the code i want but Outlook throws a wobbly when i send an email via SAS, is there anyway of 'signing' the email from SAS.
the code im using is:
filename mymail email 'email@example.com' subject=&job.;
%if &syscc>0 %then %do;
put 'An ERROR has occurred in the code';
put 'The job ran to completion';
Sorry, I don't really know what a wobbly is. Do you some kind of message from Outlook (or your e-mail server)? Does the SAS log looks ok? Your email config options in SAS might be to see, and some information about your email server.
About digital signatures, the only place I can see them mentioned in SAS doc is when using SSL, and I don't think this will apply when sending emails.
Perhaps you mean either of these scenarios: http://support.sas.com/kb/5/335.html
( about the message from Outlook: A program is trying to automatically send e-mail on your behalf. Do you want to allow this? If this is unexpected, it may be a virus and you should choose "No".)