As kilinrax has stated, the Disposition line is very important for this to work right. I would also recommend adding in some error checking. It's not your usual error checking, but simple enough:
The most common error you'll catch this way is "file not found" but who knows? maybe it will catch the wrong (or missing) Disposition problem as well.my $result = $sender->SendFile( { blah, blah } ); if (!ref $result) { die "Sendfile failed: $Mail::Sender::Error\n"; }
In reply to Re: Mail Sending me mad
by turnstep
in thread Mail Sending me mad
by Jonathan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |