Requirement is to send an email from Data Services .
We have tried SMTP_TO (We can send an email) but Data Services adds the Job Name to the Email, which cannot be configured.
We wrote a shell script calling mailx with 3 parameters (email, subject, message).
When i call the script from Data Services using exec
exec(’/usr/bin/ksh’,‘test.sh ‘email’ ‘subject’ ‘text’’,8) the email works perfectly.
If i add a space in the subject or the text , Unix returns an error (too many parameters passed)
exec(’/usr/bin/ksh’,‘test.sh ‘email’ ‘sub je ct’ ‘te xt to process’’,8)
I have tried using variables, escapoe characters and also addition double quotes around the string
exec(’/usr/bin/ksh’,‘test.sh ‘email’ “‘sub je ct’” “‘te xt to process’”’,8)
This does not return any errors but does not send an email.
Please send me your suggestions
Siddhardha (BOB member since 2005-04-25)