Thread: Perl Mail::sendemail() grumble

  1. #1
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,730

    Perl Mail::sendemail() grumble

    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
    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();
    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.

    ssharish
    Life is like riding a bicycle. To keep your balance you must keep moving - Einstein

  2. #2
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,730
    No bother sorted. Some internal variable which not being initialised caused all the frustration!

    Thanks for those who viwed my thread atleast

    ssharish
    Life is like riding a bicycle. To keep your balance you must keep moving - Einstein

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Massive Unicode Grumble....
    By CommonTater in forum General Discussions
    Replies: 25
    Last Post: 05-20-2011, 02:55 PM
  2. C++ v's Perl
    By kmcghee in forum C++ Programming
    Replies: 8
    Last Post: 08-13-2005, 11:37 AM
  3. From Perl to C
    By Heavenstrash in forum C Programming
    Replies: 4
    Last Post: 06-19-2002, 02:22 AM
  4. perl need help pls.....
    By magnum38 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 12-12-2001, 10:35 PM
Website Security Test