The problem is I didn't pay attention while looking this up in the manual. 
 :)

<applies palm to forehead>

On Friday, August 17, 2012 9:53:51 AM UTC-4, Niphlod wrote:
>
> Attachments take an optional parameter to specify the filename, so what is 
> your current problem ?
> You have the original name on the table, you have the path on the table, 
> you have the file in the uploads directory. Seems to me that you don't have 
> to copy anything around....
>
> mail.send('y...@example.com <javascript:>',
>   'Message subject',
>   'Message body',
>   attachments = [Mail.Attachment('/path/to/fist.file', filename=
> "myfilename.jpg"),
>                  Mail.Attachment('/path/to/second.file', filename=
> "myfilename2.zip")])
>
>
>
> On Friday, August 17, 2012 2:35:38 PM UTC+2, Cliff Kachinske wrote:
>>
>> How can I email uploaded files with the original file name?
>>
>> I realize it is possible to make a copy of the file with the original 
>> name and attach that, but that seems like a waste of resources.
>>
>> Is there a better way?
>>
>> thanks,
>> Cliff Kachinske
>>
>

-- 



Reply via email to