my original scenario I have Mail::Sender wrapped in a wrapper class (for reasons that are missing in this example script) which is represented here by csMail:


#------------------------------------- # PACKAGE INFO package csMail; $VERSION = .2; #------------------------------------- # PRAGMAS use strict; use utf8; #------------------------------------- # 3RD PARTY MODULES use Mail::Sender; #================================================================ sub new { my ($class,%args) = @_; $args{smtp} = 'smtp.nycap.rr.com'; $args{port} = 25; $args{from} = 'default_from' if not defined( $args{from} ); $args{replyto} = $args{from} if not defined( $args{replyto} ); ref( my $sender = new Mail::Sender {%args} ) or die $Mail::Sender: +:Error; my $self = bless { sender => $sender }, $class; return $self; } #---------------------------------------------------------------- sub MailMsg { my ($self,%args) = @_; return $self->{sender}->MailMsg(%args); } #---------------------------------------------------------------- sub MailFile { my ($self,%args) = @_; return $self->{sender}->MailFile(%args); } #================================================================ sub descError { return $Mail::Sender::Error; }

Here is the script that calls it, generating the same error


#------------------------------------- # PRAGMAS use strict; use utf8; #------------------------------------- # IN HOUSE MODULES use csMail; #=================================================== ref( my $mailer = csMail->new() ) or die csMail::descError; $mailer->MailMsg( to => 'stephen@crescentsun.com', msg => 'test message body', subject => 'test subject' ) or warn $mailer->descError();

In reply to Re: Re: Re: Re: Mail::Sender issue by AidanLee
in thread Mail::Sender issue by AidanLee

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.