Unable to send mail using notification activity -job aborted
Moderators: chulett, rschirm, roy
Unable to send mail using notification activity -job aborted
Hi All,
Scenario ::
I want to collect recipient addresses from a file then for those addresses which are mentioned in MailList file I want to send emails.
So I have created one shell script called through execute command activity which is fetching data from file & echoing output as mail addresses and passes as input to notification activity stage to send mail.
Job Flow ::
Execute Command Activity (For Fetching mails from a file & passing those mails as output) -- > Notification Mail Activity (Mentioned Command output in recipient mail address)
So For a sample file MailList.txt which is holding 2 addresses (Space separated)
abc.123@gmail.com xyz@gmail.com
Output From Command Activity Stage (From Script MailList.sh) is ::
abc.123@gmail.com xyz@gmail.com
Input to Notification Mail Activity ::
Recipients email address : #Execute_Command.$CommandOutput#
But Job is getting aborted stating Parameter 2 ('') does not start with a keyword.
Kindly suggest how to resolve this issue.
Scenario ::
I want to collect recipient addresses from a file then for those addresses which are mentioned in MailList file I want to send emails.
So I have created one shell script called through execute command activity which is fetching data from file & echoing output as mail addresses and passes as input to notification activity stage to send mail.
Job Flow ::
Execute Command Activity (For Fetching mails from a file & passing those mails as output) -- > Notification Mail Activity (Mentioned Command output in recipient mail address)
So For a sample file MailList.txt which is holding 2 addresses (Space separated)
abc.123@gmail.com xyz@gmail.com
Output From Command Activity Stage (From Script MailList.sh) is ::
abc.123@gmail.com xyz@gmail.com
Input to Notification Mail Activity ::
Recipients email address : #Execute_Command.$CommandOutput#
But Job is getting aborted stating Parameter 2 ('') does not start with a keyword.
Kindly suggest how to resolve this issue.
-
- Premium Member
- Posts: 425
- Joined: Sat Nov 19, 2005 9:26 am
- Location: New York City
- Contact:
-
- Premium Member
- Posts: 425
- Joined: Sat Nov 19, 2005 9:26 am
- Location: New York City
- Contact:
Ah... should have pushed earlier on the @FM possibility but those usually end up throwing a "code=-4 [ParamValue/Limitvalue is not appropriate]" error message. I also thought when Julio first mentioned them and you said you "already tried that option" that you meant you'd already stripped out the Field Mark(s) that $CommandOutput always adds to the string. For the record, you would have had this problem using this mechanism to pass in any number of values, including a single email address.
Thanks for pushing the proper solution, Julio.![Wink :wink:](./images/smilies/icon_wink.gif)
Thanks for pushing the proper solution, Julio.
![Wink :wink:](./images/smilies/icon_wink.gif)
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers