in reply to Another MIME::Lite/Net::SMTP Question
One thing that sticks out as being incorrect is the line
In the $msg->attach function. The single quotes around $rptname will cause it to be interpreted literally, looking for an attachment called $rptname, instead of whatever the value of the variable is. You probably just wantFilename =>'$rptname'
Filename => $rptname
|
|---|