Are you sure it's not a restriction ?
Your attachments may be under the gateway's limit taken piece by piece, but it may not be the case when you attach all of them.
Replace the server & domain parts below, and have a look.
#!/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));
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.
Update: Actually, calling MIME::Lite->send_by_smtp with Debug => 1 as part of it's args may be simpler (haven't tried)
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.