Error in Using DSSendMail
Posted: Tue Dec 17, 2002 9:36 pm
Hi All,
I am using DSSendMail on unix. When i try to execute the command from a routine, I get the following error:
Arg1 = nroy@abc.com - ** This is my To Address
Arg2 = paritosh@xyz.com - ** this is my From Address
Arg3 = Testing from Xavient - ** THis is my Subject
Arg4 = Testing - ** this is the mail body.
All these 4 arguments are passed as parameters to a routine, from which i call DSSendMail. On NT i do not get any problem. But on Unix it gives the following error:
Test completed.
DSLogWarn called from : DSSendMail
Message to be logged is...
> Error when executing command: "sendmail_77405.sh"
> *** Output from command was: ***
> Warning: .cf file is out of date: sendmail 8.11.6+Sun supports version 9, .cf file is version 8
> No recipient addresses found in header
> sendmail_77405.sh: From:: execute permission denied
> sendmail_77405.sh: To:: execute permission denied
> sendmail_77405.sh: Subject:: execute permission denied
> sendmail_77405.sh: Testing: execute permission denied
> sendmail_77405.sh: ////: cannot execute
>
>
> Contents of command file:
> #! /usr/bin/sh
> /usr/sbin/sendmail -t -v From: paritosh@xyz.com
> To: nroy@abc.com
> Subject: Testing from Xavient
>
> Testing
> ////
Result = -21
Can any one help me in this..
Thanks in advance,
Nilotpal.
I am using DSSendMail on unix. When i try to execute the command from a routine, I get the following error:
Arg1 = nroy@abc.com - ** This is my To Address
Arg2 = paritosh@xyz.com - ** this is my From Address
Arg3 = Testing from Xavient - ** THis is my Subject
Arg4 = Testing - ** this is the mail body.
All these 4 arguments are passed as parameters to a routine, from which i call DSSendMail. On NT i do not get any problem. But on Unix it gives the following error:
Test completed.
DSLogWarn called from : DSSendMail
Message to be logged is...
> Error when executing command: "sendmail_77405.sh"
> *** Output from command was: ***
> Warning: .cf file is out of date: sendmail 8.11.6+Sun supports version 9, .cf file is version 8
> No recipient addresses found in header
> sendmail_77405.sh: From:: execute permission denied
> sendmail_77405.sh: To:: execute permission denied
> sendmail_77405.sh: Subject:: execute permission denied
> sendmail_77405.sh: Testing: execute permission denied
> sendmail_77405.sh: ////: cannot execute
>
>
> Contents of command file:
> #! /usr/bin/sh
> /usr/sbin/sendmail -t -v From: paritosh@xyz.com
> To: nroy@abc.com
> Subject: Testing from Xavient
>
> Testing
> ////
Result = -21
Can any one help me in this..
Thanks in advance,
Nilotpal.