Thanks that got rid of the error, however, it still does not send the emails out...

Here is the file contents inside the subroutine.
my ($__to,$__cc,$__bcc,$__from,$__subject,$__html_message,$__text_mess +age,$__importance,$__xpriority,$__x_ms_priority) = @_; use MIME::Lite; my $_sendIp = $ENV{REMOTE_ADDR} || "127.0.0.1"; my $msg = MIME::Lite->new( 'From' => $__from, 'To' => $__to, 'Cc' => $__cc, 'Bcc' => $__bcc, 'subject' => $__subject, 'Type' => 'multipart/mixed', "X-Mailer" => "$_co_domain Mailer - Version 2.0", 'X-Organization' => "$_co_name", "X-Mail-Sent-For" => "$_co_name or www.$_co_domain/$_un; From +IP: $_sendIp", 'X-Priority' => $__xpriority, 'X-MSMail-Priority' => $__xpriority ); $msg->attach( 'Type' =>'TEXT', 'Data' =>"$__text_message", 'Disposition' => "inline" ); $msg->attach( 'Type' =>'HTML', 'Data' =>"$__html_message", 'Disposition' => "inline" ); my $_encEmPass = "43616c9765365f5f2640f311e1w1d5d6t2f3eacw052459ed4t4" +; $_encEmPass = decryptPass($_encEmPass); use Test::Trap qw/ :output(systemsafe) /; my $_sendError = ""; trap { $msg->send() or $_sendError = $@ }; $_ for $trap->die, $trap->stdout, $trap->stderr; if(!$_sendError and $_) { $_sendError = $_; } if($_sendError) { return (0,"$_sendError"); } else { return (1,""); }
Do you see why that would not send the email? I get not errors returned but no emails get sent out for some reason.

Thank you Perl Monks for your help and advice.


In reply to Re^2: using Mime::Lite by ukndoit
in thread using Mime::Lite by Anonymous Monk

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.