To reduce the packets captured to just those that are interesting you need a capture filter. http://wiki.wireshark.org/CaptureFilters has a good explanation; what you want is something like
host smtp.gmail.com and port 25 (or 587, 465, etc.)
Since MIME::Lite->send isn't cutting it, why not use Net::SMTP::TLS directly? Something like:
my ($from, $to,$subject,$message, $path) =@_;
my $pt=25; # or 587, 465, etc depending on what gmail uses
my $mailer = new Net::SMTP::TLS(
Port => $pt,
User => $un,
Password => $pw,
Timeout => 60,
) or die "Cannot create a TLS mailer instance!\n";
my $msg = MIME::Lite->new(
From => $from,
'Reply-to' => $from,
To => $to,
Subject => $subject,
Type => 'multipart/related'
) or die "Cannot create a new email instance!\n";
Type => 'TEXT',
Data => $message,
) or die "Error adding TXT: $!\n";
Type => 'aplication/pdf',
Path => $path,
Disposition => 'attachment'
) or die "Error adding PDF: $!\n";
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||