in reply to send mail with attachment using SMTP

For NT I use the builtin SMTP method it is called be putting
MIME::Lite->send('smtp','mailrelay');
Replacing mailrelay with my networks SMTP Host I put this before the I create the MIME object but i dont know if that makes a diiference