Using Special Characters in API Portal's SMTP Config

Document ID : KB000102708
Last Modified Date : 19/06/2018
Show Technical Document Details
Question:
Can you use special characters for 'username' and 'password' in the SMTP config of Portal? (portal.conf)
Answer:
If you plan on using special characters such as / or $, you will need to use single quotes or else upon saving the file, it will escape the values. Example:

PORTAL_SMTP_USERNAME='Test\\\\Test'
PORTAL_SMTP_PASSWORD='Test$$ca'

Please note the use of single quotes above. If not, the special characters will be chopped.
Additional Information:
https://docops.ca.com/ca-api-developer-portal-enhanced-experience/4-2/en/install-configure-and-upgrade/configure-and-use-external-mail-server