Hello All,
I have a requirement to generate report and send them to a distribution list.
The problem I am facing is when sending out the email using mailx.
The email address (DL) we have is starting with # and because of this it's not recognising the email and throwing the below error.
Error"Send options without primary recipient specified"
When I try to put the email under "" then no email has been send out.
Appreciate your suggestions on this issue.
Thanks.
RECIPIENT=$RECIPIENT"#AppMIReporting@domain.com";
echo "$BODY" | mailx -r "$SENDER" -s "$SUBJECT" -a "$ODFILENAME" -a "$LOFILENAME" "$RECIPIENT"