in reply to sendmail not returning error info

Hi,

have a look at perldoc -f close and you'll see that you have to program two cases where you get feedback in $! or $?.

McA

Replies are listed 'Best First'.
Re^2: sendmail not returning error info
by gsee (Acolyte) on Nov 28, 2014 at 13:26 UTC

    McA, Thanks this definitely helped!

    I am getting an error of 17152 returned in $? which translated to sendmails error code 67 and I'm yet to discover why I get this error as all the email addresses in the To: seem fine.