in reply to Re: email attachments using multipart MIME format
in thread email attachments using multipart MIME format
I've also altered where it creates the extra parts to the e-mail, so for each property it creates an e-mail, adds each part in the loop if the file exists and then sends the e-mail. Thanks very much for your help, I'm glad I managed to find the monks, especially after the amount of times I've been getting stuck in my learning recently!if (-e $tmp) { $picfilename = "".$AGENT."-".$AGENTid.".jpg"; print ("$pic +filename\n"); $msg->attach( Type => 'image file/jpg', Path => $tmp, Filename => $picfilename, Disposition => 'attachment'); }
|
|---|