in reply to mime::lite $msg->send erratic
Note: the STDERR redirection comes from this node, and if you look at MIME::Lite's docs, you'll notice MIME::Lite->send accepts a "sub" facility, where you could plug a variant of the snippet, to "enable" debugging. Take a look at send_by_smtp's source for further inspiration on how to do it.#!/usr/bin/perl -w use strict; use Net::SMTP; use IO::Scalar; my $smtp; my $debug = ''; tie *STDERR, 'IO::Scalar', \$debug; $smtp = Net::SMTP->new('your.smtp.server', Hello => 'a.domain.it.accepts', Timeout => 30, Debug => 1, ); $smtp->quit(); untie *STDERR; print grep {/SIZE/} (split(/\n/,$debug));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: mime::lite $msg->send erratic
by nnigam (Novice) on Feb 10, 2005 at 17:39 UTC |