Hi,
Is it possible to rename an attachment once it's inside a mail object? For example, with the attachment below, once I've passed it the path and name of the original file, can I get into the object and change the file name to "fred.jpg" instead of being "12587.jpg".?
$mail->attach (
type => 'image/jpeg',
encoding => '-guess',
body_path => '/path/to/image',
filename => "12587.jpg"
);
Cheers,
R.
Is it possible to rename an attachment once it's inside a mail object? For example, with the attachment below, once I've passed it the path and name of the original file, can I get into the object and change the file name to "fred.jpg" instead of being "12587.jpg".?
$mail->attach (
type => 'image/jpeg',
encoding => '-guess',
body_path => '/path/to/image',
filename => "12587.jpg"
);
Cheers,
R.