Hi,
I try to configure mail service in sas viya 4 , to be able to send mails from platform, without the code.
If I want to send an email by code from a sas program the mail is sent, I used this part of code:
options emailhost=
(
"smtp.host.com"
STARTTLS auth=LOGIN
id=" mail@xxxx.xxx"
pw="xxxxx"
port=587
);
filename mymail email "mail@xxxx.xxx"
subject="My SAS Configuration File";
data _null_;
file mymail;
put 'Jim,';
put 'This is my SAS configuration file.';
put 'I think you might like the';
put 'new options I added.';
run;
I tried to add the same options in sas.mail, but I think the problem is that I don't know where to add the STARTTLS or auth=LOGIN .
Can you help me with this problem.
Thank you,
George
Hi @gwootton thank you for your answer
I added the properties , but i still can not send any email.
I have tried even to add at host directly something like this ("smtp.host.com" STARTTLS auth=LOGIN) , with commas without commas, with parenthesis, without parenthesis, and i get the same result.
Unfortunately, I reached the same result , the mail was not sent.
Maybe I am missing something, I saw that in the documentation is saying that the email service is restarted, i was looking in Lens to check if I have any mail service that I could restart ( something like mail-viya) , and I couldn't find a mail service. But here I get a little bit confused why I could send mail from code and not from the application.
I found the pod that is responsible for the mail service and I saw that I get an error when I save the mail service.
I get the same error even after I set the TLSPolicy.
I am starting to think that the problem is not the TLS.
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.