ok well did this I dumped the email part I used uptop
& put this code in place hehe I'm getting closer
code:--------------------------------------------------------------------------------
#!/usr/bin/perl
use MIME::Entity;
$message = "Message text here";
### Create the top-level, and set up the mail headers:
$top = MIME::Entity->build(Type =>"multipart/mixed",
From => "from\@yourdomain.com",
To => "to\@yourdomain.com",
Subject => "Your subject here");
$top->attach(Data=>$message);
### Part #2: a GIF file:
$top->attach(Path => "/path/to/file/to/attach.zip",
Type => "application/gzip",
Encoding => "binary");
### Send it:
open MAIL, "| /usr/lib/sendmail -t -oi -oem" or die "open: $!";
$top->print(\*MAIL);
close MAIL;
--------------------------------------------------------------------------------
only one more thing i'm not sure of & thats the file attachments name because it gets the date in the file name so every day it's different hummmm ...
not sure if I name the attachment like this if it would know to send the new file lol
dbbackup-`date +%m-%d-%Y`.sql.gz
anyway i'm closer to this yippy