I am having some problem whit Mail-sender using MailFile method to send
attachments. When sending a txt file it's being truncated at the end of the
file. Is this a known problem or am I doing something wrong???
If I change the file extension to something else it works fine
eval {
$sender = new Mail::Sender {
from => $RegistryData{'MailFrom'},
replyto => $RegistryData{'MailReply'},
smtp => $RegistryData{'SMTPServer'},
auth=> $Authmetod,
authid=> $senddata{'username'},
authpwd=> $senddata{'password'},
client=> 'NONAME'
};
$Mail::Sender::NO_X_MAILER=1;
$Mail::Sender::SITE_HEADERS='X-Mailer: NONAME';
(ref ($sender->MailFile(
{to => $senddata{'address'},
subject => $senddata{'file'},
msg => $msgbody,
file => "$senddata{'filepath'}\\$senddata{'file'}"
}))
) or die;
$sender->Close;
};
Anyone having some ideas!!
/Ulf
Perl is a mess and that's good because the problem space is also a mess. --
Larry Wall
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
- Re: Mail::sender and txt attachments. Ulf Lowig
- Re: Mail::sender and txt attachments. Jenda Krynicky
