Has anyone here come across an issue when the Mail::Sendmail subroutine stops working when packages within a module. But works fine when not packaged!
Like
Anyone now any reason as to why? I've checked either way the uid is just the same. Was thinking if it was the security that the smtp wasn't allowing access. But thats not the case.Code:sub foo_sendemail() <== Works fine!! { ... ... Mail::sendmail( %mail ); } foo_sendemail(); ---------------------------------- package SendMail; sub foo_sendemail() <== doesn't work! { ... ... Mail::sendmail( %mail ); } from a different module SendMail::foo_sendemail();
ssharish