Hello everyone, thank you all for your help. I was able to send an email using Tom's method of xcmd by adding the 'swaks' command in the script. However, I found that when I entered the password directly in the command, I got unsuccessful authentication because the password is decoded in base64 into a different password than what I typed. To avoid this issue, I used the following command to enter the password in this format:
$(echo 'cGFzc3dvcmR4' | base64 --decode)
This is the full command I used to send the email:
x "swaks --to &rec --from &sen --server &serv --tls --auth LOGIN --port 465 --auth-user userx1 --auth-password $(echo 'cGFzc3dvcmR4' | base64 --decode) --h-Subject &subj --body &email_body --attach &attachment";
Is it possible that SAS also decoded my password into another password, which led to unsuccessful authentication?
... View more